Develop REST APIs in API Gateway
In Amazon API Gateway, you build a REST API as a collection of programmable entities known as API Gateway resources. For example, you use a RestApi resource to represent an API that can contain a collection of Resource entities.
Each Resource
entity can have one or more Method
resources. A Method
is an incoming request submitted by the client and is expressed in the request
parameters and body. It defines the application programming interface for the client to access the exposed
Resource
. To integrate the Method
with a backend endpoint, also known as the integration
endpoint, you create an Integration resource. This forwards
the incoming request to a specified integration endpoint URI. If necessary, you can transform request parameters or
request body to meet the backend requirements.
For responses, you can create a MethodResponse resource to represent a request response received by the client and you create an IntegrationResponse resource to represent the request response that is returned by the backend. You can configure the integration response to transform the backend response data before returning the data to the client or to pass the backend response as-is to the client.
To help your customers understand your API, you can also provide documentation for the API, as part of the API creation or after the API is created. To enable this, add a DocumentationPart resource for a supported API entity.
To control how clients call an API, use IAM permissions, a Lambda authorizer, or an Amazon Cognito user pool. To meter the use of your API, set up usage plans to throttle API requests. You can enable these when creating or updating your API.
For an introduction on how to create an API, see Tutorial: Create a REST API with a Lambda proxy integration. To learn more information about the capabilities of API Gateway that you might use while developing a REST API, see the following topics. These topics contain conceptual information and procedures that you can perform using the API Gateway console, the API Gateway REST API, the AWS CLI, or one of the AWS SDKs.
Topics
- API endpoint types for REST APIs in API Gateway
- Methods for REST APIs in API Gateway
- Control and manage access to REST APIs in API Gateway
- Integrations for REST APIs in API Gateway
- Request validation for REST APIs in API Gateway
- Data transformations for REST APIs in API Gateway
- Gateway responses for REST APIs in API Gateway
- CORS for REST APIs in API Gateway
- Binary media types for REST APIs in API Gateway
- Invoke REST APIs in API Gateway
- Develop REST APIs using OpenAPI in API Gateway