I'm really new to API dev and don't have a broad background knowledge. So please bear that in mind if my question looks too simple (stupid). I was playing around with serverless and the AWS lambda to get a better understanding of API's. It was pretty easy to define a simple function and define a http endpoint for a get request. However, with a post event I have my troubles.
As far as I understood and according to the documentation a typical lambda function is always of the template:
def my_function(event, context):
pass
If I understand it correctly, the event parameter contains the actual input parameters sent to my function. If my API would take a string as input and just capitalize it, the input string would be part of the event object. Is this correct?
Are there any rules how the event object needs to look like, how I can pass parameters to it etc? I wasn't really able to find that information. If someone could provide this information or a link where I can find the resources would be much appreciated.