forked from stelligent/dromedary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.json
66 lines (66 loc) · 2.68 KB
/
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
59
60
61
62
63
64
65
66
{
"swagger": "2.0",
"schemes": [
"https"
],
"paths": {
"/{subpath}": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "subpath",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "200 response",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
},
"Access-Control-Allow-Methods": {
"type": "string"
},
"Content-Type": {
"type": "string"
}
}
}
},
"x-amazon-apigateway-integration": {
"responses": {
".*": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Methods": "'GET, OPTIONS'",
"method.response.header.Content-Type": "integration.response.body.contentType",
"method.response.header.Access-Control-Allow-Origin": "'*'"
},
"responseTemplates": {
"application/json": "$util.base64Decode( $input.path('$.payload') )"
}
}
},
"requestTemplates": {
"application/json": "{\n \"stage\": \"$context.stage\",\n \"request-id\": \"$context.requestId\",\n \"api-id\": \"$context.apiId\",\n \"resource-path\": \"$context.resourcePath\",\n \"resource-id\": \"$context.resourceId\",\n \"http-method\": \"$context.httpMethod\",\n \"source-ip\": \"$context.identity.sourceIp\",\n \"user-agent\": \"$context.identity.userAgent\",\n \"account-id\": \"$context.identity.accountId\",\n \"api-key\": \"$context.identity.apiKey\",\n \"caller\": \"$context.identity.caller\",\n \"user\": \"$context.identity.user\",\n \"user-arn\": \"$context.identity.userArn\",\n \"queryString\": \"$input.params().querystring\",\n \"headers\": \"$input.params().header\",\n \"pathParams\": \"$input.params().path\",\n \"allParams\": \"$input.params()\",\n \"ddbTableName\": \"$stageVariables.DDBTableName\"\n}"
},
"uri": "arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:324320755747:function:${stageVariables.AppFunctionName}:${stageVariables.AppVersion}/invocations",
"httpMethod": "POST",
"requestParameters": {
"integration.request.path.subpath": "method.request.path.subpath"
},
"type": "aws"
}
}
}
}
}