Skip to content

Instantly share code, notes, and snippets.

@saidsef
Last active March 7, 2018 21:24
Show Gist options
  • Save saidsef/f8603428b8f9bed0a17bf3fecd6cda0c to your computer and use it in GitHub Desktop.
Save saidsef/f8603428b8f9bed0a17bf3fecd6cda0c to your computer and use it in GitHub Desktop.
AWS API Gateway VPC Link - Swagger
{
"swagger": "2.0",
"info": {
"version": "2017-11-17T04:40:23Z",
"title": "TestVPCLink"
},
"basePath": "/",
"schemes": [
"https"
],
"paths": {
"/{proxy+}": {
"x-amazon-apigateway-any-method": {
"produces": [
"application/json"
],
"parameters": [
{
"name": "proxy",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "200 response",
"schema": {
"$ref": "#/definitions/Empty"
}
}
},
"x-amazon-apigateway-integration": {
"responses": {
"default": {
"statusCode": "200"
}
},
"requestParameters": {
"integration.request.path.proxy": "method.request.path.proxy"
},
"uri": "{URL}/{proxy}",
"passthroughBehavior": "when_no_match",
"connectionType": "VPC_LINK",
"connectionId": "{VPC_LINK_ID}",
"httpMethod": "ANY",
"type": "http_proxy"
}
}
}
},
"definitions": {
"Empty": {
"type": "object",
"title": "Empty Schema"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment