Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created April 11, 2022 22:15
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 richardgrantserverless/8ad94b0f7c7cf3ede34ccb36c18c8e35 to your computer and use it in GitHub Desktop.
Save richardgrantserverless/8ad94b0f7c7cf3ede34ccb36c18c8e35 to your computer and use it in GitHub Desktop.
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