Last active
March 7, 2018 21:24
-
-
Save saidsef/f8603428b8f9bed0a17bf3fecd6cda0c to your computer and use it in GitHub Desktop.
AWS API Gateway VPC Link - Swagger
This file contains hidden or 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": "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