DEV Community

Arvind Sridharan
Arvind Sridharan

Posted on

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}"
      }
    }
  }
}

Top comments (0)