Menu
Amazon API Gateway
Developer Guide

Creating an API in Amazon API Gateway

In general, creating an API in API Gateway involves the following steps:

  1. Create a RestApi instance.

  2. Append any child Resource, if needed, to the root resource (/),

  3. Add a Method instance to represent a client-facing method on the Resource.

  4. Set up the Integration to forward the method request to the integrated backend and to route the response from the backend to the method.

To help your customers understand your API, you can provide documentation for the API, as part of the API creation. To enable this, add a DocumentationPart resource for a supported API entity.

To control how clients call an API, you can require AWS credentials, using a custom authorizer or Amazon Cognito user pool. To meter the use of your API, set up usage plans to throttle API requests.