Amazon API Gateway HTTP Proxy Integration Example: Difference between revisions
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
==Create Resources== | ==Create Resources== | ||
The root resource is created with the API. Additional resources can be created by going to API -> <''API name''> -> Resources -> "/" -> Actions -> Create Resource | The root resource is created with the API. Additional resources can be created by going to API -> <''API name''> -> Resources -> "/" -> Actions -> Create Resource. | ||
For the simplest possible proxy integration, the only resource created under root is a [[Amazon_API_Gateway_Concepts#Proxy_Resource|proxy resource]], meaning that it forwards everything that comes to the integration endpoint. | |||
Resource name: "proxy" | Resource name: "proxy" |
Revision as of 01:19, 12 February 2019
Internal
Overview
Playground
Procedure
Create the API
API Gateway Console -> APIs -> Create API
Protocol
REST
Create new API
New API
Settings
API Name: themyscira
Description:
Endpoint Type: Regional.
Create Resources
The root resource is created with the API. Additional resources can be created by going to API -> <API name> -> Resources -> "/" -> Actions -> Create Resource.
For the simplest possible proxy integration, the only resource created under root is a proxy resource, meaning that it forwards everything that comes to the integration endpoint.
Resource name: "proxy"
Resource Path: /{proxy+}
Enable API Gateway CORS.
{proxy+} ANY Setup:
Integration type: HTTP Proxy
Endpoint URL: http://themyscira.playground/{proxy}
Content Handling: Passthrough
Use Default Timeout.