serverless-offline icon indicating copy to clipboard operation
serverless-offline copied to clipboard

Unable to send body (as JSON) in the request

Open ashachar opened this issue 10 years ago • 1 comments

As described at the documentation, I've added a my_file_name.req.vm file for a velocity template. Here's the template: { "name" : "$input.params('raw_name')", "body" : $input.json('$') }

When I send with the request a parameter called "raw_name", its value is then available via event.name. However, the request's body (as JSON) is not available via event.body or anything like that.

What am I missing?

ashachar avatar Aug 30 '16 23:08 ashachar

That is because the plugin doesn't support velocity template .vm parsing yet u_u. Duplicate with #92

dherault avatar Aug 31 '16 07:08 dherault