{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/366","labels_url":"https://api.github.com/repos/serverless/serverless/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/366/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/366/events","html_url":"https://github.com/serverless/serverless/issues/366","id":121797054,"number":366,"title":"Deploying endpoint with requestParameters returns error. ","user":{"login":"yaochen","id":3923949,"avatar_url":"https://avatars.githubusercontent.com/u/3923949?v=3","gravatar_id":"","url":"https://api.github.com/users/yaochen","html_url":"https://github.com/yaochen","followers_url":"https://api.github.com/users/yaochen/followers","following_url":"https://api.github.com/users/yaochen/following{/other_user}","gists_url":"https://api.github.com/users/yaochen/gists{/gist_id}","starred_url":"https://api.github.com/users/yaochen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaochen/subscriptions","organizations_url":"https://api.github.com/users/yaochen/orgs","repos_url":"https://api.github.com/users/yaochen/repos","events_url":"https://api.github.com/users/yaochen/events{/privacy}","received_events_url":"https://api.github.com/users/yaochen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-11T21:42:58Z","updated_at":"2015-12-14T18:42:32Z","closed_at":null,"body":"Not sure if I'm using it wrong, but it was working when I was testing with JAWS.\r\n\r\nThe error:\r\n\r\n```\r\nServerless: | /Users/yc/.node/lib/node_modules/serverless/node_modules/bluebird/js/main/promise.js:677\r\n            throw e;\r\n            ^\r\n\r\nServerlessError: No integration defined for method\r\n```\r\n\r\nHere's the s-function.json:\r\n\r\n```\r\n{\r\n  \"functions\": {\r\n    \"Static-chartInterval\": {\r\n      \"envVars\": [],\r\n      \"custom\": {\r\n        \"excludePatterns\": []\r\n      },\r\n      \"handler\": \"modules/static-chart/interval/handler.handler\",\r\n      \"timeout\": 6,\r\n      \"memorySize\": 1024,\r\n      \"endpoints\": {\r\n        \"api/v2/static-chart/{symbol}/interval\": {\r\n          \"method\": \"GET\",\r\n          \"authorizationType\": \"none\",\r\n          \"apiKeyRequired\": false,\r\n          \"requestParameters\": {\r\n            \"integration.request.querystring.color\": \"method.request.querystring.color\",\r\n            \"integration.request.querystring.height\": \"method.request.querystring.height\",\r\n            \"integration.request.querystring.width\": \"method.request.querystring.width\",\r\n            \"integration.request.querystring.startDate\": \"method.request.querystring.startDate\",\r\n            \"integration.request.querystring.endDate\": \"method.request.querystring.endDate\",\r\n            \"integration.request.querystring.header\": \"method.request.querystring.header\"\r\n          },\r\n          \"requestTemplates\": {\r\n            \"application/json\": \"{ \\n\\t \\\"symbol\\\":\\\"$input.params('symbol')\\\", \\n\\t \\\"color\\\":\\\"$input.params('color')\\\", \\n\\t \\\"height\\\":\\\"$input.params('height')\\\", \\n\\t \\\"width\\\":\\\"$input.params('width')\\\", \\n\\t \\\"startDate\\\":\\\"$input.params('startDate')\\\", \\n\\t \\\"endDate\\\":\\\"$input.params('endDate')\\\", \\n\\t \\\"header\\\":\\\"$input.params('header')\\\" \\n}\"\r\n          },\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\n  }\r\n}\r\n```\r\n\r\nThe JAWS requivalent:\r\n\r\n```\r\n{\r\n  \"lambda\": {\r\n    \"envVars\": [],\r\n    \"deploy\": true,\r\n    \"package\": {\r\n      \"optimize\": {\r\n        \"builder\": \"browserify\",\r\n        \"minify\": true,\r\n        \"ignore\": [],\r\n        \"exclude\": [\r\n          \"aws-sdk\"\r\n        ],\r\n        \"includePaths\": []\r\n      },\r\n      \"excludePatterns\": []\r\n    },\r\n    \"cloudFormation\": {\r\n      \"Description\": \"\",\r\n      \"Handler\": \"aws_modules/static/intraday/handler.handler\",\r\n      \"MemorySize\": 256,\r\n      \"Runtime\": \"nodejs\",\r\n      \"Timeout\": 10\r\n    }\r\n  },\r\n  \"apiGateway\": {\r\n    \"deploy\": false,\r\n    \"cloudFormation\": {\r\n      \"Type\": \"AWS\",\r\n      \"Path\": \"api/v1/static/intraday/{symbol}\",\r\n      \"Method\": \"GET\",\r\n      \"AuthorizationType\": \"none\",\r\n      \"ApiKeyRequired\": false,\r\n      \"RequestTemplates\": {\r\n        \"application/json\": \"{ \\n\\t \\\"symbol\\\":\\\"$input.params('symbol')\\\", \\n\\t \\\"color\\\":\\\"$input.params('color')\\\", \\n\\t \\\"height\\\":\\\"$input.params('height')\\\", \\n\\t \\\"width\\\":\\\"$input.params('width')\\\", \\n\\t \\\"starttime\\\":\\\"$input.params('starttime')\\\", \\n\\t \\\"endtime\\\":\\\"$input.params('endtime')\\\" \\n}\"\r\n      },\r\n      \"RequestParameters\": {\r\n        \"integration.request.querystring.color\": \"method.request.querystring.color\",\r\n        \"integration.request.querystring.height\": \"method.request.querystring.height\",\r\n        \"integration.request.querystring.width\": \"method.request.querystring.width\",\r\n        \"integration.request.querystring.starttime\": \"method.request.querystring.starttime\",\r\n        \"integration.request.querystring.endtime\": \"method.request.querystring.endtime\"\r\n      },\r\n      \"Responses\": {\r\n        \"400\": {\r\n          \"statusCode\": \"400\"\r\n        },\r\n        \"500\": {\r\n          \"statusCode\": \"500\"\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\n```"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/164521917","html_url":"https://github.com/serverless/serverless/issues/366#issuecomment-164521917","issue_url":"https://api.github.com/repos/serverless/serverless/issues/366","id":164521917,"user":{"login":"yaochen","id":3923949,"avatar_url":"https://avatars.githubusercontent.com/u/3923949?v=3","gravatar_id":"","url":"https://api.github.com/users/yaochen","html_url":"https://github.com/yaochen","followers_url":"https://api.github.com/users/yaochen/followers","following_url":"https://api.github.com/users/yaochen/following{/other_user}","gists_url":"https://api.github.com/users/yaochen/gists{/gist_id}","starred_url":"https://api.github.com/users/yaochen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaochen/subscriptions","organizations_url":"https://api.github.com/users/yaochen/orgs","repos_url":"https://api.github.com/users/yaochen/repos","events_url":"https://api.github.com/users/yaochen/events{/privacy}","received_events_url":"https://api.github.com/users/yaochen/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T18:42:32Z","updated_at":"2015-12-14T18:42:32Z","body":"@ac360 thanks for the quick fix.\r\n\r\nas a temp workaround, u can just change \"requestParameters\" to \"RequestParameters\"; or edit the source file now(which i did/then reverted since i didnt want to break something else)."}}