

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# Code examples for API Gateway using AWS SDKs
<a name="api-gateway_code_examples"></a>

The following code examples show you how to use Amazon API Gateway with an AWS software development kit (SDK).

*Actions* are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.

*Scenarios* are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.

*AWS community contributions* are examples that were created and are maintained by multiple teams across AWS. To provide feedback, use the mechanism provided in the linked repositories.

**More resources**
+  **[ API Gateway Developer Guide](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html)** – More information about API Gateway.
+ **[API Gateway API Reference](https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html)** – Details about all available API Gateway actions.
+ **[AWS Developer Center](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23api-gateway)** – Code examples that you can filter by category or full-text search.
+ **[AWS SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples)** – GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code.

**Contents**
+ [Basics](api-gateway_code_examples_basics.md)
  + [Actions](api-gateway_code_examples_actions.md)
    + [`CreateDeployment`](api-gateway_example_api-gateway_CreateDeployment_section.md)
    + [`CreateResource`](api-gateway_example_api-gateway_CreateResource_section.md)
    + [`CreateRestApi`](api-gateway_example_api-gateway_CreateRestApi_section.md)
    + [`DeleteDeployment`](api-gateway_example_api-gateway_DeleteDeployment_section.md)
    + [`DeleteRestApi`](api-gateway_example_api-gateway_DeleteRestApi_section.md)
    + [`GetBasePathMapping`](api-gateway_example_api-gateway_GetBasePathMapping_section.md)
    + [`GetResources`](api-gateway_example_api-gateway_GetResources_section.md)
    + [`GetRestApis`](api-gateway_example_api-gateway_GetRestApis_section.md)
    + [`ListBasePathMappings`](api-gateway_example_api-gateway_ListBasePathMappings_section.md)
    + [`PutIntegration`](api-gateway_example_api-gateway_PutIntegration_section.md)
    + [`PutIntegrationResponse`](api-gateway_example_api-gateway_PutIntegrationResponse_section.md)
    + [`PutMethod`](api-gateway_example_api-gateway_PutMethod_section.md)
    + [`PutMethodResponse`](api-gateway_example_api-gateway_PutMethodResponse_section.md)
    + [`UpdateBasePathMapping`](api-gateway_example_api-gateway_UpdateBasePathMapping_section.md)
+ [Scenarios](api-gateway_code_examples_scenarios.md)
  + [Create a REST API to track COVID-19 data](api-gateway_example_cross_ApiGatewayDataTracker_section.md)
  + [Create a REST API with Lambda proxy integration](api-gateway_example_api_gateway_GettingStarted_087_section.md)
  + [Create a lending library REST API](api-gateway_example_cross_AuroraRestLendingLibrary_section.md)
  + [Create a serverless application to manage photos](api-gateway_example_cross_PAM_section.md)
  + [Create a websocket chat application](api-gateway_example_cross_ApiGatewayWebsocketChat_section.md)
  + [Create and deploy a REST API](api-gateway_example_api-gateway_Usage_CreateDeployRest_section.md)
  + [Use API Gateway to invoke a Lambda function](api-gateway_example_cross_LambdaAPIGateway_section.md)
+ [AWS community contributions](api-gateway_code_examples_aws_community_contributions.md)
  + [Build and test a serverless application](api-gateway_example_tributary-lite_serverless-application_section.md)