-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
57 lines (52 loc) · 1.11 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
app: serverless-challenge
service: serverless-challenge
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs16.x
functions:
list-user:
handler: src/list-user.handler
events:
- httpApi:
path: /users
method: get
create-user:
handler: src/create-user.handler
events:
- httpApi:
path: /users
method: post
update-user:
handler: src/update-user.handler
events:
- httpApi:
path: /user/{userId}
method: put
request:
parameters:
paths:
userId: true
show-user:
handler: src/show-user.handler
events:
- httpApi:
path: /user/{userId}
method: get
request:
parameters:
paths:
userId: true
delete-user:
handler: src/delete-user.handler
events:
- httpApi:
path: /user/{userId}
method: delete
request:
parameters:
paths:
userId: true
plugins:
- serverless-offline
- serverless-plugin-typescript