-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
53 lines (45 loc) · 1.24 KB
/
Copy pathserverless.yml
File metadata and controls
53 lines (45 loc) · 1.24 KB
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
# For full config options, check the docs:
# docs.serverless.com
service: members-service # NOTE: update this with your service name
provider:
name: aws
runtime: dotnetcore2.1
package:
#individually: true
artifact: bin/release/netcoreapp2.1/deploy-package.zip
functions:
createMember:
handler: ServerlessAssembly::ServerlessFunctions.CreateMemberFunction::Handle
events:
- http:
path: members
method: post
cors: true
getMember:
handler: ServerlessAssembly::ServerlessFunctions.GetMemberFunction::Handle
events:
- http:
path: members/{id}
method: get
cors: true
getMembers:
handler: ServerlessAssembly::ServerlessFunctions.GetMembersFunction::Handle
events:
- http:
path: members
method: get
cors: true
updateMember:
handler: ServerlessAssembly::ServerlessFunctions.UpdateMemberFunction::Handle
events:
- http:
path: members
method: put
cors: true
deleteMember:
handler: ServerlessAssembly::ServerlessFunctions.DeleteMemberFunction::Handle
events:
- http:
path: members
method: delete
cors: true