-
Notifications
You must be signed in to change notification settings - Fork 240
1 lambda function with several events (several http methods for restful api) #11
Comments
Thanks for your quick response , Much appreciated really @estebansolo functions: list: get: update: delete: |
In my case I haven't used serverless framework, however as I saw it could be as follows, just organize which file and handler is going to receive the requests and try to execute it. https://www.serverless.com/framework/docs/providers/aws/events/schedule/ Here they use multiple events, although they are schedule type I would think it works the same way for http.
|
@estebansolo Bunch of thanks for your time and help |
I have a different question. How do I have 1 lambda function with different events (different http methods) I don't want to create several lambda functions for each method its not interesting and not efficient. I want to be able trigger that function with either with boolean logic inside the actual script or even better edit this serverless.yml file so I can do that from yaml rather than inside the script
Please help me, will much appreciate that
Originally posted by @gavetisyanca in #5 (comment)
The text was updated successfully, but these errors were encountered: