Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save arvsr1988/e1cb6b4a360e3e7a43233ec288dc94d8 to your computer and use it in GitHub Desktop.
Save arvsr1988/e1cb6b4a360e3e7a43233ec288dc94d8 to your computer and use it in GitHub Desktop.
swagger definition for a http proxy integration on the AWS api gateway.
{
"/{proxy+}": {
"x-amazon-apigateway-any-method": {
"produces": [
"application/json"
],
"parameters": [
{
"name": "proxy",
"in": "path",
"required": true,
"type": "string"
}
],
"security": [],
"responses": {},
"x-amazon-apigateway-integration": {
"responses": {
"default": {
"statusCode": "200"
}
},
"requestParameters": {
"integration.request.path.proxy": "method.request.path.proxy"
},
"uri": "http://endpoint-you-want-for-host-header.com/{proxy}",
"httpMethod": "ANY",
"passthroughBehavior": "when_no_match",
"type": "http_proxy",
"connectionType": "VPC_LINK",
"connectionId": "$${stageVariables.vpcLinkId}"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment