Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save avtaniket/4a73b04c53d304d859a28258bc841067 to your computer and use it in GitHub Desktop.
Save avtaniket/4a73b04c53d304d859a28258bc841067 to your computer and use it in GitHub Desktop.
Swagger - URL & path parameters integration with AWS gateway
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