Initialize REST API setup in API Gateway - Amazon API Gateway

Initialize REST API setup in API Gateway

You can create a REST API using the API Gateway console, the API Gateway REST API, the AWS SDKs for API Gateway, and the AWS Command Line Interface.

When you create a REST API using the API Gateway REST API, the AWS SDKs for API Gateway, or the AWS Command Line Interface, the default configuration is an edge-optimized API. For more information about API endpoint types, see Choose an endpoint type to set up for an API Gateway API.

When you deploy your API to a stage, your API Gateway creates a default URL for your API. For more information about the default URL, see Deploying a REST API in Amazon API Gateway. You can assign a custom domain name (for example, apis.example.com) as the API's host name and call the API with a base URL of the https://apis.example.com/myApi format. For more information about custom domain names, see Setting up custom domain names for REST APIs.

We recommend that you use one of the following examples to learn how to create a REST API.