Created
October 18, 2016 14:34
-
-
Save cmtoomey/00ccaf0fc45261168db40d87b2e7b08a to your computer and use it in GitHub Desktop.
API Gateway Description
This file contains 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": "2016-10-17T16:42:56Z", | |
"title": "ServerVersions" | |
}, | |
"host": "4xppv7irje.execute-api.us-west-2.amazonaws.com", | |
"basePath": "/prod", | |
"schemes": [ | |
"https" | |
], | |
"paths": { | |
"/server": { | |
"get": { | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"responses": { | |
"200": { | |
"description": "200 response", | |
"schema": { | |
"$ref": "#/definitions/Empty" | |
}, | |
"headers": { | |
"Access-Control-Allow-Origin": { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
"x-amazon-apigateway-integration": { | |
"credentials": "arn:aws:iam::566602564913:role/service-role/testing", | |
"responses": { | |
"default": { | |
"statusCode": "200", | |
"responseParameters": { | |
"method.response.header.Access-Control-Allow-Origin": "'*'" | |
} | |
} | |
}, | |
"requestTemplates": { | |
"application/json": "{\r\n \"TableName\": \"Versions\"\r\n}" | |
}, | |
"uri": "arn:aws:apigateway:us-west-2:dynamodb:action/Scan", | |
"passthroughBehavior": "when_no_templates", | |
"httpMethod": "POST", | |
"type": "aws" | |
} | |
}, | |
"options": { | |
"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": "'GET,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" | |
} | |
} | |
}, | |
"/worker": { | |
"get": { | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"responses": { | |
"200": { | |
"description": "200 response", | |
"schema": { | |
"$ref": "#/definitions/Empty" | |
} | |
} | |
}, | |
"x-amazon-apigateway-integration": { | |
"credentials": "arn:aws:iam::566602564913:role/service-role/testing", | |
"responses": { | |
"default": { | |
"statusCode": "200" | |
} | |
}, | |
"requestTemplates": { | |
"application/json": "{\r\n \"TableName\": \"Workers\"\r\n}" | |
}, | |
"uri": "arn:aws:apigateway:us-west-2:dynamodb:action/Scan", | |
"passthroughBehavior": "when_no_templates", | |
"httpMethod": "POST", | |
"type": "aws" | |
} | |
}, | |
"options": { | |
"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": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", | |
"method.response.header.Access-Control-Allow-Headers": "'Content-Type,Authorization,X-Amz-Date,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" | |
} | |
} | |
} | |
}, | |
"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