generated from DataStax-Examples/datastax-examples-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
51 lines (45 loc) · 968 Bytes
/
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
service: azure-node-cassandra-http-api
provider:
name: azure
runtime: nodejs8.x
location: Central US
stage: dev
environment:
CONTACT_POINTS: <change-to-public-ip>
LOCAL_DC: <change-to-dc-name>
plugins:
- serverless-azure-functions
deploy:
runFromBlobUrl: true
package:
include:
- index.js
excludeDevDependencies: false
functions:
createCatalog:
handler: index.createCatalog
events:
- http: true
x-azure-settings:
methods:
- post
route: catalog/create
authLevel: anonymous
addItem:
handler: index.addItem
events:
- http: true
x-azure-settings:
methods:
- post
route: catalog/add
authLevel: anonymous
getItem:
handler: index.getItem
events:
- http: true
x-azure-settings:
methods:
- get
route: catalog/get/{id}
authLevel: anonymous