-
Notifications
You must be signed in to change notification settings - Fork 5.7k
/
serverless.yml
83 lines (81 loc) · 1.89 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
service: service
provider:
name: aws
runtime: nodejs16.x
lambdaHashingVersion: 20201221
functions:
target:
handler: target.handler
events:
- http:
path: no-params
method: get
- http:
path: querystrings-not-required
method: get
request:
parameters:
querystrings:
url: false
- http:
path: querystrings-required
method: get
request:
parameters:
querystrings:
url: true
- http:
path: headers-not-required
method: get
request:
parameters:
headers:
foo: false
- http:
path: headers-required
method: get
request:
parameters:
headers:
foo: true
- http:
path: paths-not-required
method: get
request:
parameters:
paths:
bar: false
- http:
path: paths-not-required-object
method: get
request:
parameters:
paths:
bar:
required: false
- http:
path: paths-required
method: get
request:
parameters:
paths:
bar: true
- http:
path: no-params-with-schema
method: get
request:
schemas:
application/json:
schema:
$schema: http://json-schema.org/schema#
- http:
path: params-with-schema
method: get
request:
schemas:
application/json:
schema:
$schema: http://json-schema.org/schema#
parameters:
querystrings:
url: true