{"action":"created","comment":{"url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/comments/82997917","pull_request_review_id":3866168,"id":82997917,"diff_hunk":"@@ -367,7 +369,7 @@ class Offline {\n             const contentType = request.mime || defaultContentType;\n             // default request template to '' if we don't have a definition pushed in from serverless or endpoint\n             let requestTemplate = '';\n-            if (typeof requestTemplates !== 'undefined') {\n+            if (typeof requestTemplates !== 'undefined' && endpoint.integration === 'lambda') {","path":"src/index.js","position":43,"original_position":43,"commit_id":"ada8b41609e52060893501f439d0e4b54139c685","original_commit_id":"ada8b41609e52060893501f439d0e4b54139c685","user":{"login":"lalifraco-devspark","id":13339324,"avatar_url":"https://avatars.githubusercontent.com/u/13339324?v=3","gravatar_id":"","url":"https://api.github.com/users/lalifraco-devspark","html_url":"https://github.com/lalifraco-devspark","followers_url":"https://api.github.com/users/lalifraco-devspark/followers","following_url":"https://api.github.com/users/lalifraco-devspark/following{/other_user}","gists_url":"https://api.github.com/users/lalifraco-devspark/gists{/gist_id}","starred_url":"https://api.github.com/users/lalifraco-devspark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lalifraco-devspark/subscriptions","organizations_url":"https://api.github.com/users/lalifraco-devspark/orgs","repos_url":"https://api.github.com/users/lalifraco-devspark/repos","events_url":"https://api.github.com/users/lalifraco-devspark/events{/privacy}","received_events_url":"https://api.github.com/users/lalifraco-devspark/received_events","type":"User","site_admin":false},"body":"We should use the integration variable defined in line 277 here.","created_at":"2016-10-12T12:53:44Z","updated_at":"2016-10-12T12:53:44Z","html_url":"https://github.com/leonardoalifraco/serverless-offline/pull/1#discussion_r82997917","pull_request_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/comments/82997917"},"html":{"href":"https://github.com/leonardoalifraco/serverless-offline/pull/1#discussion_r82997917"},"pull_request":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/1","id":88955049,"html_url":"https://github.com/leonardoalifraco/serverless-offline/pull/1","diff_url":"https://github.com/leonardoalifraco/serverless-offline/pull/1.diff","patch_url":"https://github.com/leonardoalifraco/serverless-offline/pull/1.patch","issue_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/issues/1","number":1,"state":"open","locked":false,"title":"Support for lambda-proxy integration.","user":{"login":"gertjvr","id":1691062,"avatar_url":"https://avatars.githubusercontent.com/u/1691062?v=3","gravatar_id":"","url":"https://api.github.com/users/gertjvr","html_url":"https://github.com/gertjvr","followers_url":"https://api.github.com/users/gertjvr/followers","following_url":"https://api.github.com/users/gertjvr/following{/other_user}","gists_url":"https://api.github.com/users/gertjvr/gists{/gist_id}","starred_url":"https://api.github.com/users/gertjvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gertjvr/subscriptions","organizations_url":"https://api.github.com/users/gertjvr/orgs","repos_url":"https://api.github.com/users/gertjvr/repos","events_url":"https://api.github.com/users/gertjvr/events{/privacy}","received_events_url":"https://api.github.com/users/gertjvr/received_events","type":"User","site_admin":false},"body":"Taking inspiration from #117, only thing missing was the requestContext and some others \r\n-  not setting up a request / response template unless lambda integration was specify.","created_at":"2016-10-12T05:18:51Z","updated_at":"2016-10-12T12:53:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60bf06c25fb035255606f35bbf83472bfb87b065","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/1/commits","review_comments_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/1/comments","review_comment_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/issues/1/comments","statuses_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/statuses/ada8b41609e52060893501f439d0e4b54139c685","head":{"label":"TicketSolutionsPtyLtd:serverless_v1","ref":"serverless_v1","sha":"ada8b41609e52060893501f439d0e4b54139c685","user":{"login":"TicketSolutionsPtyLtd","id":11829120,"avatar_url":"https://avatars.githubusercontent.com/u/11829120?v=3","gravatar_id":"","url":"https://api.github.com/users/TicketSolutionsPtyLtd","html_url":"https://github.com/TicketSolutionsPtyLtd","followers_url":"https://api.github.com/users/TicketSolutionsPtyLtd/followers","following_url":"https://api.github.com/users/TicketSolutionsPtyLtd/following{/other_user}","gists_url":"https://api.github.com/users/TicketSolutionsPtyLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/TicketSolutionsPtyLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TicketSolutionsPtyLtd/subscriptions","organizations_url":"https://api.github.com/users/TicketSolutionsPtyLtd/orgs","repos_url":"https://api.github.com/users/TicketSolutionsPtyLtd/repos","events_url":"https://api.github.com/users/TicketSolutionsPtyLtd/events{/privacy}","received_events_url":"https://api.github.com/users/TicketSolutionsPtyLtd/received_events","type":"Organization","site_admin":false},"repo":{"id":70658315,"name":"serverless-offline","full_name":"TicketSolutionsPtyLtd/serverless-offline","owner":{"login":"TicketSolutionsPtyLtd","id":11829120,"avatar_url":"https://avatars.githubusercontent.com/u/11829120?v=3","gravatar_id":"","url":"https://api.github.com/users/TicketSolutionsPtyLtd","html_url":"https://github.com/TicketSolutionsPtyLtd","followers_url":"https://api.github.com/users/TicketSolutionsPtyLtd/followers","following_url":"https://api.github.com/users/TicketSolutionsPtyLtd/following{/other_user}","gists_url":"https://api.github.com/users/TicketSolutionsPtyLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/TicketSolutionsPtyLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TicketSolutionsPtyLtd/subscriptions","organizations_url":"https://api.github.com/users/TicketSolutionsPtyLtd/orgs","repos_url":"https://api.github.com/users/TicketSolutionsPtyLtd/repos","events_url":"https://api.github.com/users/TicketSolutionsPtyLtd/events{/privacy}","received_events_url":"https://api.github.com/users/TicketSolutionsPtyLtd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TicketSolutionsPtyLtd/serverless-offline","description":"Emulate AWS λ and API Gateway locally when developing your Serverless project","fork":true,"url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline","forks_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/forks","keys_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/teams","hooks_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/hooks","issue_events_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/issues/events{/number}","events_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/events","assignees_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/assignees{/user}","branches_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/branches{/branch}","tags_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/tags","blobs_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/git/refs{/sha}","trees_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/statuses/{sha}","languages_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/languages","stargazers_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/stargazers","contributors_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/contributors","subscribers_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/subscribers","subscription_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/subscription","commits_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/commits{/sha}","git_commits_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/git/commits{/sha}","comments_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/comments{/number}","issue_comment_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/issues/comments{/number}","contents_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/contents/{+path}","compare_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/merges","archive_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/downloads","issues_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/issues{/number}","pulls_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/pulls{/number}","milestones_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/milestones{/number}","notifications_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/labels{/name}","releases_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/releases{/id}","deployments_url":"https://api.github.com/repos/TicketSolutionsPtyLtd/serverless-offline/deployments","created_at":"2016-10-12T03:19:31Z","updated_at":"2016-10-12T03:19:32Z","pushed_at":"2016-10-12T04:53:25Z","git_url":"git://github.com/TicketSolutionsPtyLtd/serverless-offline.git","ssh_url":"git@github.com:TicketSolutionsPtyLtd/serverless-offline.git","clone_url":"https://github.com/TicketSolutionsPtyLtd/serverless-offline.git","svn_url":"https://github.com/TicketSolutionsPtyLtd/serverless-offline","homepage":"","size":574,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"leonardoalifraco:serverless_v1","ref":"serverless_v1","sha":"ef3736fa2abb88d06e8ac9eb8eb6d9a50b3f4316","user":{"login":"leonardoalifraco","id":2942943,"avatar_url":"https://avatars.githubusercontent.com/u/2942943?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardoalifraco","html_url":"https://github.com/leonardoalifraco","followers_url":"https://api.github.com/users/leonardoalifraco/followers","following_url":"https://api.github.com/users/leonardoalifraco/following{/other_user}","gists_url":"https://api.github.com/users/leonardoalifraco/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardoalifraco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardoalifraco/subscriptions","organizations_url":"https://api.github.com/users/leonardoalifraco/orgs","repos_url":"https://api.github.com/users/leonardoalifraco/repos","events_url":"https://api.github.com/users/leonardoalifraco/events{/privacy}","received_events_url":"https://api.github.com/users/leonardoalifraco/received_events","type":"User","site_admin":false},"repo":{"id":70538732,"name":"serverless-offline","full_name":"leonardoalifraco/serverless-offline","owner":{"login":"leonardoalifraco","id":2942943,"avatar_url":"https://avatars.githubusercontent.com/u/2942943?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardoalifraco","html_url":"https://github.com/leonardoalifraco","followers_url":"https://api.github.com/users/leonardoalifraco/followers","following_url":"https://api.github.com/users/leonardoalifraco/following{/other_user}","gists_url":"https://api.github.com/users/leonardoalifraco/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardoalifraco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardoalifraco/subscriptions","organizations_url":"https://api.github.com/users/leonardoalifraco/orgs","repos_url":"https://api.github.com/users/leonardoalifraco/repos","events_url":"https://api.github.com/users/leonardoalifraco/events{/privacy}","received_events_url":"https://api.github.com/users/leonardoalifraco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leonardoalifraco/serverless-offline","description":"Emulate AWS λ and API Gateway locally when developing your Serverless project","fork":true,"url":"https://api.github.com/repos/leonardoalifraco/serverless-offline","forks_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/forks","keys_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/teams","hooks_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/hooks","issue_events_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/issues/events{/number}","events_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/events","assignees_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/assignees{/user}","branches_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/branches{/branch}","tags_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/tags","blobs_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/git/refs{/sha}","trees_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/statuses/{sha}","languages_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/languages","stargazers_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/stargazers","contributors_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/contributors","subscribers_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/subscribers","subscription_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/subscription","commits_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/commits{/sha}","git_commits_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/git/commits{/sha}","comments_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/comments{/number}","issue_comment_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/issues/comments{/number}","contents_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/contents/{+path}","compare_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/merges","archive_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/downloads","issues_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/issues{/number}","pulls_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls{/number}","milestones_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/milestones{/number}","notifications_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/labels{/name}","releases_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/releases{/id}","deployments_url":"https://api.github.com/repos/leonardoalifraco/serverless-offline/deployments","created_at":"2016-10-10T23:58:18Z","updated_at":"2016-10-10T23:58:20Z","pushed_at":"2016-10-12T05:18:51Z","git_url":"git://github.com/leonardoalifraco/serverless-offline.git","ssh_url":"git@github.com:leonardoalifraco/serverless-offline.git","clone_url":"https://github.com/leonardoalifraco/serverless-offline.git","svn_url":"https://github.com/leonardoalifraco/serverless-offline","homepage":"","size":561,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/1"},"html":{"href":"https://github.com/leonardoalifraco/serverless-offline/pull/1"},"issue":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/issues/1"},"comments":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/leonardoalifraco/serverless-offline/statuses/ada8b41609e52060893501f439d0e4b54139c685"}}}}
{"actor":{"display_login":"lalifraco-devspark"}}