-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-swagger.json
58 lines (58 loc) · 1.38 KB
/
api-swagger.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"swagger": "2.0",
"info": {
"version": "2016-05-13T21:14:51Z",
"title": "{{api_name}}"
},
"schemes": [
"https"
],
"paths": {
"/v1/welcome": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "name",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "200 response",
"schema": {
"$ref": "#/definitions/Empty"
}
}
},
"x-amazon-apigateway-integration": {
"credentials": "{{InvokeHelloWorld}}",
"responses": {
"default": {
"statusCode": "200"
}
},
"passthroughBehavior": "when_no_templates",
"httpMethod": "POST",
"requestTemplates": {
"application/json": "{ \"who\": \"$input.params('name')\", \"hello_log_db\": \"$stageVariables.hello_log_db\", \"log_level\": \"$stageVariables.log_level\" }"
},
"uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/{{HelloWorld}}/invocations",
"type": "aws"
}
}
}
},
"definitions": {
"Empty": {
"type": "object"
}
}
}