Skip to content

Instantly share code, notes, and snippets.

@alexed1
Created September 27, 2017 22:21
Show Gist options
  • Save alexed1/ba746b559e284355b07f5f698c0e04f3 to your computer and use it in GitHub Desktop.
Save alexed1/ba746b559e284355b07f5f698c0e04f3 to your computer and use it in GitHub Desktop.
swagger json for AWS API to Lambda
{
"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