Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created Apr 11, 2022
Embed
What would you like to do?
functions:
listProducts:
handler: com.serverless.ListProductsHandler
events:
- http:
path: /products
method: get
getProduct:
handler: com.serverless.GetProductHandler
events:
- http:
path: /products/{id}
method: get
createProduct:
handler: com.serverless.CreateProductHandler
events:
- http:
path: /products
method: post
deleteProduct:
handler: com.serverless.DeleteProductHandler
events:
- http:
path: /products/{id}
method: delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment