DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›