/
serverless.yml
58 lines (56 loc) · 1.48 KB
/
serverless.yml
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
service: service
provider:
name: aws
runtime: nodejs12.x
lambdaHashingVersion: 20201221
apiGateway:
request:
schemas:
test-model:
name: 'TestModel'
description: 'Test Description'
schema: '${file(dummySchema.json)}'
test-model-simple:
schema: '${file(dummySchema.json)}'
unused-model:
name: 'UnusedModel'
description: 'I should not be created'
schema: '${file(dummySchema.json)}'
functions:
target:
handler: target.handler
events:
- http:
path: test-model-full
method: get
request:
schemas:
application/json: test-model
- http:
path: test-model-simple
method: get
request:
schemas:
application/json: test-model-simple
- http:
path: test-direct-simple
method: get
request:
schemas:
application/json: '${file(dummySchema.json)}'
- http:
path: test-direct-full
method: get
request:
schemas:
application/json:
name: TestMethodModel
description: 'Test Method Model Desc'
schema: '${file(dummySchema.json)}'
- http:
path: test-multiple
method: get
request:
schemas:
application/json: '${file(dummySchema.json)}'
text/plain: 'foo'