forked from tfxor/terraform-aws-automation-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi_swagger.json.tpl
46 lines (46 loc) · 1.1 KB
/
api_swagger.json.tpl
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
{
"swagger": "2.0",
"info": {
"version": "2019-02-27T17:25:48Z",
"title": "DemoApi7356626c"
},
"schemes": [
"https"
],
"paths": {
"/": {
"get": {
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "200 response",
"schema": {
"$ref": "#/definitions/Empty"
}
}
},
"x-amazon-apigateway-integration": {
"credentials": "arn:aws:iam::${account_id}:role/DemoAWSLambdaExecRole7356626c",
"uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:${account_id}:function:DemoAWSLambda7356626c/invocations",
"responses": {
"default": {
"statusCode": "200"
}
},
"passthroughBehavior": "when_no_match",
"httpMethod": "POST",
"contentHandling": "CONVERT_TO_TEXT",
"type": "aws"
}
}
}
},
"definitions": {
"Empty": {
"type": "object",
"title": "Empty Schema"
}
}
}