UNPKG

15.1 kBJSONView Raw
1{
2 "paths": {
3 "/hello/there": {
4 "options": {
5 "x-amazon-apigateway-integration": {
6 "type": "MOCK",
7 "requestTemplates": {
8 "application/json": {
9 "statusCode": 200
10 }
11 },
12 "requestParameters": {
13 "method.request.header.Authorization": true
14 },
15 "requestModels": {
16 "application/json": "Empty"
17 },
18 "responses": {
19 "200": {
20 "statusCode": "200",
21 "responseParameters": {
22 "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
23 "method.response.header.Access-Control-Allow-Methods": "'*'",
24 "method.response.header.Access-Control-Allow-Origin": "'*'"
25 },
26 "responseTemplates": {
27 "application/json": null
28 },
29 "responseModels": {
30 "application/json": "Empty"
31 }
32 }
33 }
34 }
35 },
36 "delete": {
37 "operationId": "MySampleAPI-Hello-There-DELETE",
38 "x-api-deploy": {
39 "sdk": {
40 "method": "helloThere"
41 }
42 },
43 "x-amazon-lambda": {
44 "handler": "./hello/there",
45 "memorySize": "",
46 "role": "",
47 "timeout": "",
48 "runtime": "",
49 "arn": "arn:aws:lambda:us-east-1:347191724861:function:MySampleAPI-Hello-There-DELETE"
50 },
51 "x-amazon-apigateway-integration": {
52 "type": "AWS",
53 "apiKeyRequired": false,
54 "httpMethod": "POST",
55 "cacheNamespace": null,
56 "cacheKeyParameters": [],
57 "credentials": null,
58 "requestTemplates": {},
59 "requestParameters": {
60 "method.request.header.Authorization": true
61 },
62 "requestModels": {
63 "application/json": "Empty"
64 },
65 "responses": {
66 "200": {
67 "statusCode": "200",
68 "responseParameters": {
69 "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
70 "method.response.header.Access-Control-Allow-Methods": "'*'",
71 "method.response.header.Access-Control-Allow-Origin": "'*'"
72 },
73 "responseTemplates": {
74 "application/json": {
75 "payload": "$input.params()",
76 "path": "$input.params().path",
77 "query": "$input.params().querystring",
78 "header": "$input.params().header",
79 "Authorization": "$input.params(\"Authorization\")"
80 }
81 },
82 "responseModels": {
83 "application/json": "Empty"
84 }
85 }
86 },
87 "uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:347191724861:function:MySampleAPI-Hello-There-DELETE/invocations"
88 }
89 },
90 "patch": {
91 "operationId": "MySampleAPI-Hello-There-PATCH",
92 "x-api-deploy": {
93 "sdk": {
94 "method": "helloThere"
95 }
96 },
97 "x-amazon-lambda": {
98 "handler": "./hello/there",
99 "memorySize": "",
100 "role": "",
101 "timeout": "",
102 "runtime": "",
103 "arn": "arn:aws:lambda:us-east-1:347191724861:function:MySampleAPI-Hello-There-PATCH"
104 },
105 "x-amazon-apigateway-integration": {
106 "type": "AWS",
107 "apiKeyRequired": false,
108 "httpMethod": "POST",
109 "cacheNamespace": null,
110 "cacheKeyParameters": [],
111 "credentials": null,
112 "requestTemplates": {},
113 "requestParameters": {
114 "method.request.header.Authorization": true
115 },
116 "requestModels": {
117 "application/json": "Empty"
118 },
119 "responses": {
120 "200": {
121 "statusCode": "200",
122 "responseParameters": {
123 "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
124 "method.response.header.Access-Control-Allow-Methods": "'*'",
125 "method.response.header.Access-Control-Allow-Origin": "'*'"
126 },
127 "responseTemplates": {
128 "application/json": {
129 "payload": "$input.params()",
130 "path": "$input.params().path",
131 "query": "$input.params().querystring",
132 "header": "$input.params().header",
133 "Authorization": "$input.params(\"Authorization\")"
134 }
135 },
136 "responseModels": {
137 "application/json": "Empty"
138 }
139 }
140 }
141 }
142 },
143 "x-amazon-apigateway-resource": {
144 "id": "z05ti8"
145 }
146 },
147 "/hello/world": {
148 "options": {
149 "x-amazon-apigateway-integration": {
150 "type": "MOCK",
151 "requestTemplates": {
152 "application/json": {
153 "statusCode": 200
154 }
155 },
156 "requestParameters": {
157 "method.request.header.Authorization": true
158 },
159 "requestModels": {
160 "application/json": "Empty"
161 },
162 "responses": {
163 "200": {
164 "statusCode": "200",
165 "responseParameters": {
166 "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
167 "method.response.header.Access-Control-Allow-Methods": "'*'",
168 "method.response.header.Access-Control-Allow-Origin": "'*'"
169 },
170 "responseTemplates": {
171 "application/json": null
172 },
173 "responseModels": {
174 "application/json": "Empty"
175 }
176 }
177 }
178 }
179 },
180 "post": {
181 "operationId": "MySampleAPI-Hello-World-POST",
182 "x-api-deploy": {
183 "sdk": {
184 "method": "helloWorld"
185 }
186 },
187 "x-amazon-lambda": {
188 "handler": "./hello/world",
189 "memorySize": "",
190 "role": "",
191 "timeout": "",
192 "runtime": "",
193 "arn": "arn:aws:lambda:us-east-1:347191724861:function:MySampleAPI-Hello-World-POST"
194 },
195 "x-amazon-apigateway-integration": {
196 "type": "AWS",
197 "apiKeyRequired": false,
198 "httpMethod": "POST",
199 "cacheNamespace": null,
200 "cacheKeyParameters": [],
201 "credentials": null,
202 "requestTemplates": {},
203 "requestParameters": {
204 "method.request.header.Authorization": true
205 },
206 "requestModels": {
207 "application/json": "Empty"
208 },
209 "responses": {
210 "200": {
211 "statusCode": "200",
212 "responseParameters": {
213 "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
214 "method.response.header.Access-Control-Allow-Methods": "'*'",
215 "method.response.header.Access-Control-Allow-Origin": "'*'"
216 },
217 "responseTemplates": {
218 "application/json": {
219 "payload": "$input.params()",
220 "path": "$input.params().path",
221 "query": "$input.params().querystring",
222 "header": "$input.params().header",
223 "Authorization": "$input.params(\"Authorization\")"
224 }
225 },
226 "responseModels": {
227 "application/json": "Empty"
228 }
229 }
230 }
231 }
232 },
233 "x-amazon-apigateway-resource": {
234 "id": "tqcgno"
235 }
236 },
237 "/hello": {
238 "options": {
239 "x-amazon-apigateway-integration": {
240 "type": "MOCK",
241 "requestTemplates": {
242 "application/json": {
243 "statusCode": 200
244 }
245 },
246 "requestParameters": {
247 "method.request.header.Authorization": true
248 },
249 "requestModels": {
250 "application/json": "Empty"
251 },
252 "responses": {
253 "200": {
254 "statusCode": "200",
255 "responseParameters": {
256 "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
257 "method.response.header.Access-Control-Allow-Methods": "'*'",
258 "method.response.header.Access-Control-Allow-Origin": "'*'"
259 },
260 "responseTemplates": {
261 "application/json": null
262 },
263 "responseModels": {
264 "application/json": "Empty"
265 }
266 }
267 }
268 }
269 },
270 "get": {
271 "operationId": "MySampleAPI-Hello-GET",
272 "x-api-deploy": {
273 "sdk": {
274 "method": "hello"
275 }
276 },
277 "x-amazon-lambda": {
278 "handler": "./hello/world",
279 "memorySize": "",
280 "role": "",
281 "timeout": "",
282 "runtime": "",
283 "arn": "arn:aws:lambda:us-east-1:347191724861:function:MySampleAPI-Hello-GET"
284 },
285 "x-amazon-apigateway-integration": {
286 "type": "AWS",
287 "apiKeyRequired": false,
288 "httpMethod": "POST",
289 "cacheNamespace": null,
290 "cacheKeyParameters": [],
291 "credentials": null,
292 "requestTemplates": {},
293 "requestParameters": {
294 "method.request.header.Authorization": true
295 },
296 "requestModels": {
297 "application/json": "Empty"
298 },
299 "responses": {
300 "200": {
301 "statusCode": "200",
302 "responseParameters": {
303 "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key'",
304 "method.response.header.Access-Control-Allow-Methods": "'*'",
305 "method.response.header.Access-Control-Allow-Origin": "'*'"
306 },
307 "responseTemplates": {
308 "application/json": {
309 "payload": "$input.params()",
310 "path": "$input.params().path",
311 "query": "$input.params().querystring",
312 "header": "$input.params().header",
313 "Authorization": "$input.params(\"Authorization\")"
314 }
315 },
316 "responseModels": {
317 "application/json": "Empty"
318 }
319 }
320 },
321 "uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:347191724861:function:MySampleAPI-Hello-GET/invocations"
322 }
323 },
324 "x-amazon-apigateway-resource": {
325 "id": "aag0pn"
326 }
327 },
328 "/": {
329 "x-amazon-apigateway-resource": {
330 "id": "jjmbnrgo7i"
331 }
332 }
333 },
334 "x-amazon-apigateway-restapi": {
335 "id": "ngv8h2emp2"
336 }
337}
\No newline at end of file