-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy-openapi.json
43 lines (43 loc) · 1.45 KB
/
proxy-openapi.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
{
"openapi": "3.0.1",
"info": {
"title": "Proxy API",
"version": "1.0"
},
"paths" : {
"/headless" : {
"get" : {
"responses" : {
"default" : {
"description" : "Default response for GET /headless"
}
},
"x-amazon-apigateway-integration" : {
"payloadFormatVersion" : "2.0",
"type" : "aws_proxy",
"httpMethod" : "POST",
"uri" : "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:{account-id}:function:headless-default/invocations",
"connectionType" : "INTERNET",
"credentials": "arn:aws:iam::{account-id}:role/{iam-role}"
}
}
},
"/proxy" : {
"get" : {
"responses" : {
"default" : {
"description" : "Default response for GET /proxy"
}
},
"x-amazon-apigateway-integration" : {
"payloadFormatVersion" : "2.0",
"type" : "aws_proxy",
"httpMethod" : "POST",
"uri" : "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:{account-id}:function:proxy-default/invocations",
"connectionType" : "INTERNET",
"credentials": "arn:aws:iam::{account-id}:role/{iam-role}"
}
}
}
}
}