Wondering if I could get some help. I’m using serverless v1.0rc2 with serverless-offline plugin. I’m new to serverless so I am trying to get an understanding. When I run locally with serverless-offline, my requests parameters are event.abc, event.def, but when I deploy, my request parameters are event.body.abc, event.body.def. Is that normal? My expectation would be the parameters would have been event.abc and event.def on both local and once deployed.
I am defining the request template as events:
events:
- http:
path: users
method: post
cors: true
request:
template:
application/json: >
{
“abc”: “$input.params(‘abc’)”,
“def”: “$input.params(‘def’)”
}