Last active
May 11, 2016 12:29
-
-
Save avtaniket/4a73b04c53d304d859a28258bc841067 to your computer and use it in GitHub Desktop.
Swagger - URL & path parameters integration with AWS gateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Swagger file need to update for URL & path parameters integration | |
Here | |
httpMethod - GET/POST/PUT/DELETE | |
uri - SWAGGER url | |
requestParameters - is optional if url contains param like {user_id} | |
x-amazon-apigateway-integration: | |
httpMethod: "POST" | |
uri: "http://54.193.106.251:10010/count/{user_id}" | |
type: "http" | |
responses: | |
default: | |
statusCode: "200" | |
passthroughBehavior: "when_no_match" | |
requestParameters: | |
integration.request.path.user_id: "method.request.path.user_id" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment