-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
79 lines (68 loc) · 1.73 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
service: wishlist-practice
plugins:
- serverless-python-requirements
provider:
name: aws
runtime: python3.7
versionFunctions: false
environment:
dbname: df0cibdp5db9f
user: ${opt:user}
password: ${opt:password}
host: ec2-174-129-210-249.compute-1.amazonaws.com
port: 5432
functions:
listLists:
handler: functions/list_handler.list_lists
events:
- http:
path: user/{user_id}/lists
method: get
addList:
handler: functions/list_handler.put_list
events:
- http:
path: user/{user_id}/list
method: post
updateList:
handler: functions/list_handler.put_list
events:
- http:
path: user/{user_id}/list/{list_id}
method: put
addGuest:
handler: functions/list_handler.put_list
events:
- http:
path: user/{user_id}/list/{list_id}
method: post
removeGuest:
handler: functions/list_handler.delete_guest
events:
- http:
path: user/{user_id}/list/{list_id}
method: delete
addItem:
handler: functions/item_handler.add_item
events:
- http:
path: user/{user_id}/list/{list_id}
method: post
deleteItem:
handler: functions/item_handler.delete_item
events:
- http:
path: user/{user_id}/list/{list_id}/item/{item_id}
method: delete
claimItem:
handler: functions/item_handler.claim_item
events:
- http:
path: user/{user_id}/list/{list_id}/item/{item_id}/claim
method: post
releaseItem:
handler: functions/item_handler.release_item
events:
- http:
path: user/{user_id}/list/{list_id}/item/{item_id}/release
method: delete