Created
September 27, 2017 22:21
-
-
Save alexed1/ba746b559e284355b07f5f698c0e04f3 to your computer and use it in GitHub Desktop.
swagger json for AWS API to Lambda
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": "1.0.0", | |
"title": "Calculate Churn Swagger json", | |
"description": "Calculate Churn" | |
}, | |
"schemes": [ | |
"https" | |
], | |
"host": "", | |
"basePath": "https://upp57qbj5b.execute-api.us-west-1.amazonaws.com/production", | |
"paths": { | |
"/customer/99/churn": { | |
"get": { | |
"summary": "Returns churn value", | |
"description": "Returns churn value", | |
"parameters": [ | |
{ | |
"name": "custId", | |
"in": "path", | |
"required": true, | |
"description": "the customer ID", | |
"type": "string" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "customer churn", | |
"schema": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment