{"action":"closed","issue":{"url":"https://api.github.com/repos/dherault/serverless-offline/issues/22","repository_url":"https://api.github.com/repos/dherault/serverless-offline","labels_url":"https://api.github.com/repos/dherault/serverless-offline/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/dherault/serverless-offline/issues/22/comments","events_url":"https://api.github.com/repos/dherault/serverless-offline/issues/22/events","html_url":"https://github.com/dherault/serverless-offline/issues/22","id":144859146,"number":22,"title":"Question - how can we use post method with this plugin","user":{"login":"nirmalgoswami","id":17105608,"avatar_url":"https://avatars.githubusercontent.com/u/17105608?v=3","gravatar_id":"","url":"https://api.github.com/users/nirmalgoswami","html_url":"https://github.com/nirmalgoswami","followers_url":"https://api.github.com/users/nirmalgoswami/followers","following_url":"https://api.github.com/users/nirmalgoswami/following{/other_user}","gists_url":"https://api.github.com/users/nirmalgoswami/gists{/gist_id}","starred_url":"https://api.github.com/users/nirmalgoswami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirmalgoswami/subscriptions","organizations_url":"https://api.github.com/users/nirmalgoswami/orgs","repos_url":"https://api.github.com/users/nirmalgoswami/repos","events_url":"https://api.github.com/users/nirmalgoswami/events{/privacy}","received_events_url":"https://api.github.com/users/nirmalgoswami/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-31T10:45:06Z","updated_at":"2016-03-31T12:21:51Z","closed_at":"2016-03-31T12:21:51Z","body":"I can read this comment from author\r\n\r\n`When no Content-Type header is set on a request, API Gateway defaults to application/json, and so does the plugin. But if you send a application/x-www-form-urlencoded or a multipart/form-data body with a application/json (or no) Content-Type, API Gateway won't parse your data (you'll get the ugly raw as input) whereas the plugin will answer 400 (malformed JSON). Please consider explicitly setting your requests' Content-Type and using separates templates.`\r\n\r\nbut don't know what i have to do.can you please explain.\r\n\r\nmy try\r\n\r\n`s-templates.json`\r\n\r\n```\r\n{\r\n  \"apiGatewayRequestTemplate\": {\r\n    \"application/json\": {\r\n      \"test\": \"$input.params('test')\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n`part of s-function.json`\r\n\r\n```\r\n\"endpoints\": [\r\n    {\r\n      \"path\": \"user/login\",\r\n      \"method\": \"POST\",\r\n      \"type\": \"AWS\",\r\n      \"authorizationType\": \"none\",\r\n      \"authorizerFunction\": false,\r\n      \"apiKeyRequired\": false,\r\n      \"requestParameters\": {},\r\n      \"requestTemplates\": \"$${apiGatewayRequestTemplate}\",\r\n      \"responses\": {\r\n        \"400\": {\r\n          \"statusCode\": \"400\"\r\n        },\r\n        \"default\": {\r\n          \"statusCode\": \"200\",\r\n          \"responseParameters\": {},\r\n          \"responseModels\": {},\r\n          \"responseTemplates\": {\r\n            \"application/json\": \"\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  ],\r\n```\r\nbut issue like above\r\n\r\n![post_method](https://cloud.githubusercontent.com/assets/17105608/14173417/5d7a6826-f75b-11e5-85ce-bd955d555e63.png)\r\n\r\nwhat i have to change to fix this issue ?"}}