The Amazon API Gateway console is the quickest way to get started with Amazon API Gateway. It provides a web-based interface for building, deploying, managing and monitoring your APIs. The Amazon API Gateway console provides a comprehensive UI to guide you through the process of creating an API. Programmatic access is also available through the Amazon API Gateway APIs.
The Amazon API Gateway Developer Guide provides several walkthrough tutorials with hands-on exercises to help you get started using Amazon API Gateway.
In this walkthrough, you will learn how to use models and mapping templates in Amazon API Gateway to transform the output of an API call from one data format to another.
You can quickly and easily create a custom API using the API Gateway console. For a simple “Hello World” example, follow these steps:
1. Visit the Amazon API Gateway console.
2. Select an existing REST API or create a new one by entering a name for the API.
3. On the REST API tree view, click the Actions button to “Create Resource”.
4. Choose a name for your resource, such as “cars”.
5. With the new resource selected, click the button to create a new method and select the HTTP verb associated with the method (for example, GET).
6. Select the integration type (for example, HTTP Proxy), and enter the URL the API Gateway should call.
7. Define how requests and responses are transformed using a transform template, or simply accept the default settings to pass all of the request and response data through without applying any transformation.
8. Configure the method’s security settings.
9. Deploy your new API to a stage.
10.From the Stage management screen, set up caching and throttling configuration.
12.Integrate the downloaded SDK into your mobile application. Write the code to invoke your custom API. For example, to invoke the getCar(int carId) API in an iOS application:
NSString *response = [MyServiceClient getCar:1323];
NSLog( @”Response was [%@]”, response );
13. Run your application.