All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.cors-method.json Maven / Gradle / Ivy

The newest version!
{
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "responses": {
    "200": {
      "description": "200 response",
      "schema": {
        "$ref": "#/definitions/Empty"
      },
      "headers": {
        "Access-Control-Allow-Origin": {
          "type": "string"
        },
        "Access-Control-Allow-Methods": {
          "type": "string"
        },
        "Access-Control-Allow-Headers": {
          "type": "string"
        }
      }
    }
  },
  "x-amazon-apigateway-integration": {
    "responses": {
      "default": {
        "statusCode": "200",
        "responseParameters": {
          "method.response.header.Access-Control-Allow-Methods": "'POST,OPTIONS'",
          "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'",
          "method.response.header.Access-Control-Allow-Origin": "'*'"
        }
      }
    },
    "requestTemplates": {
      "application/json": "{\"statusCode\": 200}"
    },
    "passthroughBehavior": "when_no_match",
    "type": "mock"
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy