{"action":"opened","issue":{"url":"https://api.github.com/repos/jorgebastida/gordon/issues/8","repository_url":"https://api.github.com/repos/jorgebastida/gordon","labels_url":"https://api.github.com/repos/jorgebastida/gordon/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jorgebastida/gordon/issues/8/comments","events_url":"https://api.github.com/repos/jorgebastida/gordon/issues/8/events","html_url":"https://github.com/jorgebastida/gordon/issues/8","id":158173649,"number":8,"title":"Query parameters are not configured in the API Gateway","user":{"login":"pmontrasio","id":47483,"avatar_url":"https://avatars.githubusercontent.com/u/47483?v=3","gravatar_id":"","url":"https://api.github.com/users/pmontrasio","html_url":"https://github.com/pmontrasio","followers_url":"https://api.github.com/users/pmontrasio/followers","following_url":"https://api.github.com/users/pmontrasio/following{/other_user}","gists_url":"https://api.github.com/users/pmontrasio/gists{/gist_id}","starred_url":"https://api.github.com/users/pmontrasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmontrasio/subscriptions","organizations_url":"https://api.github.com/users/pmontrasio/orgs","repos_url":"https://api.github.com/users/pmontrasio/repos","events_url":"https://api.github.com/users/pmontrasio/events{/privacy}","received_events_url":"https://api.github.com/users/pmontrasio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-02T15:42:57Z","updated_at":"2016-06-02T15:42:57Z","closed_at":null,"body":"I have this in the settings.yml for an application that should only demonstrate how to read parameters from a GET query string or a POST body:\r\n\r\n    greetingsapi:\r\n      description: Greetings\r\n      resources:\r\n        /hello/{name}:\r\n          methods: GET\r\n          integration:\r\n            lambda: greetings.index\r\n\r\ncode.js is\r\n\r\n    exports.handler = function(event, context) {\r\n      var data = \"Hello \" + event.name + \"!\\n\";\r\n      data += \"Event\\n\" + JSON.stringify(event, null, 2) + \"\\n\";\r\n      data += \"Context\\n\" + JSON.stringify(context, null, 2) + \"\\n\";\r\n      context.succeed(data);\r\n    };\r\n\r\n```echo '{\"name\": \"Paolo\"}' | gordon run greetings.index``` works as expected. However it seems that the ```events``` object is always empty when I call though the API gateway:\r\n\r\n    curl 'https://...eu-west-1.amazonaws.com/dev/hello/Paolo'\r\n    \"Hello undefined!\\nEvent\\n{}\\n etc\"\r\n\r\nActually looking into the AWS API Gateway there are no parameters defined for that method:\r\n\r\n![picture_2016-06-02_17 30 30 png](https://cloud.githubusercontent.com/assets/47483/15750748/e4e871b4-28e7-11e6-85b9-325e45ad3165.png)\r\n\r\nI'm probably missing some bits of configuration. I looked into the examples and the documentation, checked several alternatives (also POST instead of GET) but the parameter never gets to the function."}}
{"actor":{"display_login":"pmontrasio"}}