Skip to content

Instantly share code, notes, and snippets.

@juancho088
Created June 10, 2018 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juancho088/5939ac06fb93e16a3706815b0b136bae to your computer and use it in GitHub Desktop.
Save juancho088/5939ac06fb93e16a3706815b0b136bae to your computer and use it in GitHub Desktop.
A FaaM serverless yml file
service: MyBlockbuster
...
functions:
users:
handler: com.myblockbuster.Handler
events:
- http:
path: login
method: post
- http:
path: logout
method: post
- http:
path: signup
method: post
geolocation:
handler: com.myblockbuster.Handler
events:
- http:
path: location/country
method: get
- http:
path: location/country/{code}
method: get
- http:
path: location/region
method: get
- http:
path: location/region/{code}
method: get
- http:
path: location/city
method: get
- http:
path: location/city/{code}
method: get
posts:
handler: com.myblockbuster.Handler
events:
- http:
path: movie
method: get
- http:
path: movie/{id}
method: get
- http:
path: movie
method: post
- http:
path: movie
method: put
- http:
path: movie/{id}
method: delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment