{"action":"opened","issue":{"url":"https://api.github.com/repos/awslabs/aws-sam-local/issues/244","repository_url":"https://api.github.com/repos/awslabs/aws-sam-local","labels_url":"https://api.github.com/repos/awslabs/aws-sam-local/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-sam-local/issues/244/comments","events_url":"https://api.github.com/repos/awslabs/aws-sam-local/issues/244/events","html_url":"https://github.com/awslabs/aws-sam-local/issues/244","id":285306162,"number":244,"title":"HTTP Proxy integration to Lambda is incorrect.","user":{"login":"gantzm","id":810567,"avatar_url":"https://avatars2.githubusercontent.com/u/810567?v=4","gravatar_id":"","url":"https://api.github.com/users/gantzm","html_url":"https://github.com/gantzm","followers_url":"https://api.github.com/users/gantzm/followers","following_url":"https://api.github.com/users/gantzm/following{/other_user}","gists_url":"https://api.github.com/users/gantzm/gists{/gist_id}","starred_url":"https://api.github.com/users/gantzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gantzm/subscriptions","organizations_url":"https://api.github.com/users/gantzm/orgs","repos_url":"https://api.github.com/users/gantzm/repos","events_url":"https://api.github.com/users/gantzm/events{/privacy}","received_events_url":"https://api.github.com/users/gantzm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-01T13:01:15Z","updated_at":"2018-01-01T13:01:15Z","closed_at":null,"author_association":"NONE","body":"\r\nUsing a template like the following (see below) the \"resource\" attribute of the proxy JSON should be set to `/rest/getId/{token}`.  \r\n\r\nWhen issuing a GET call to `/rest/getId/MyId`, I would expect to see:\r\n\r\n```\r\n{\r\n  \"resource\": \"/rest/getId/{token}\",\r\n  \"path\": \"/rest/getId/MyId\"\r\n}\r\n```\r\nInstead I receive the following:\r\n```\r\n{\r\n  \"resource\": \"/rest/getId/MyId\",\r\n  \"path\": \"/rest/getId/MyId\"\r\n}\r\n```\r\nThis is contrary to how HTTP Proxy works with API Gateway. \r\n\r\nSample Template:\r\n\r\n```\r\nResources:\r\n  MyResource:\r\n    Type: AWS::Serverless::Function\r\n    Properties:\r\n      Handler: com.MyHandler\r\n      CodeUri: MyHandler.zip\r\n      Runtime: java8\r\n      MemorySize: 512\r\n      Timeout: 30\r\n      Role:\r\n        Fn::ImportValue:\r\n          !Join ['-', [!Ref 'ProjectId', !Ref 'AWS::Region', 'LambdaTrustRole']]\r\n      Events:\r\n        GetId:\r\n          Type: Api\r\n          Properties:\r\n            Path: /rest/getId/{token}\r\n            Method: get\r\n```"}}
{"actor":{"display_login":"gantzm"}}