{"action":"opened","number":60,"pull_request":{"url":"https://api.github.com/repos/Clarifai/lambdafai/pulls/60","id":69885673,"html_url":"https://github.com/Clarifai/lambdafai/pull/60","diff_url":"https://github.com/Clarifai/lambdafai/pull/60.diff","patch_url":"https://github.com/Clarifai/lambdafai/pull/60.patch","issue_url":"https://api.github.com/repos/Clarifai/lambdafai/issues/60","number":60,"state":"open","locked":false,"title":"Dk apigatewayauthorizerevent","user":{"login":"dankantor","id":509419,"avatar_url":"https://avatars.githubusercontent.com/u/509419?v=3","gravatar_id":"","url":"https://api.github.com/users/dankantor","html_url":"https://github.com/dankantor","followers_url":"https://api.github.com/users/dankantor/followers","following_url":"https://api.github.com/users/dankantor/following{/other_user}","gists_url":"https://api.github.com/users/dankantor/gists{/gist_id}","starred_url":"https://api.github.com/users/dankantor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankantor/subscriptions","organizations_url":"https://api.github.com/users/dankantor/orgs","repos_url":"https://api.github.com/users/dankantor/repos","events_url":"https://api.github.com/users/dankantor/events{/privacy}","received_events_url":"https://api.github.com/users/dankantor/received_events","type":"User","site_admin":false},"body":"@keithito this adds support for API Gateway Authorizer events. You set routes like this:\r\n\r\n```js\r\nlambda.apiGatewayAuthorizerEvent('/POST/tag', function(req, res) {\r\n   if (req.headers.Authorization) {\r\n    var token = req.headers.Authorization;\r\n    // check token\r\n    var policy = {}; // IAM Policy\r\n      res.done(null, policy);\r\n    } else {\r\n      sendError(res);\r\n    }\r\n  } else {\r\n    sendError(res);\r\n  }\r\n});\r\n```","created_at":"2016-05-12T18:37:19Z","updated_at":"2016-05-12T18:37:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Clarifai/lambdafai/pulls/60/commits","review_comments_url":"https://api.github.com/repos/Clarifai/lambdafai/pulls/60/comments","review_comment_url":"https://api.github.com/repos/Clarifai/lambdafai/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Clarifai/lambdafai/issues/60/comments","statuses_url":"https://api.github.com/repos/Clarifai/lambdafai/statuses/fda4d0ae47cdc993cf78284895b7d202dda0a5c2","head":{"label":"Clarifai:dk_APIGATEWAYAUTHORIZEREVENT","ref":"dk_APIGATEWAYAUTHORIZEREVENT","sha":"fda4d0ae47cdc993cf78284895b7d202dda0a5c2","user":{"login":"Clarifai","id":8550654,"avatar_url":"https://avatars.githubusercontent.com/u/8550654?v=3","gravatar_id":"","url":"https://api.github.com/users/Clarifai","html_url":"https://github.com/Clarifai","followers_url":"https://api.github.com/users/Clarifai/followers","following_url":"https://api.github.com/users/Clarifai/following{/other_user}","gists_url":"https://api.github.com/users/Clarifai/gists{/gist_id}","starred_url":"https://api.github.com/users/Clarifai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clarifai/subscriptions","organizations_url":"https://api.github.com/users/Clarifai/orgs","repos_url":"https://api.github.com/users/Clarifai/repos","events_url":"https://api.github.com/users/Clarifai/events{/privacy}","received_events_url":"https://api.github.com/users/Clarifai/received_events","type":"Organization","site_admin":false},"repo":{"id":54212132,"name":"lambdafai","full_name":"Clarifai/lambdafai","owner":{"login":"Clarifai","id":8550654,"avatar_url":"https://avatars.githubusercontent.com/u/8550654?v=3","gravatar_id":"","url":"https://api.github.com/users/Clarifai","html_url":"https://github.com/Clarifai","followers_url":"https://api.github.com/users/Clarifai/followers","following_url":"https://api.github.com/users/Clarifai/following{/other_user}","gists_url":"https://api.github.com/users/Clarifai/gists{/gist_id}","starred_url":"https://api.github.com/users/Clarifai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clarifai/subscriptions","organizations_url":"https://api.github.com/users/Clarifai/orgs","repos_url":"https://api.github.com/users/Clarifai/repos","events_url":"https://api.github.com/users/Clarifai/events{/privacy}","received_events_url":"https://api.github.com/users/Clarifai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clarifai/lambdafai","description":"Lambdafai is a simple framework for building and deploying REST APIs using AWS Lambda, API Gateway, DynamoDB, and S3.","fork":false,"url":"https://api.github.com/repos/Clarifai/lambdafai","forks_url":"https://api.github.com/repos/Clarifai/lambdafai/forks","keys_url":"https://api.github.com/repos/Clarifai/lambdafai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clarifai/lambdafai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clarifai/lambdafai/teams","hooks_url":"https://api.github.com/repos/Clarifai/lambdafai/hooks","issue_events_url":"https://api.github.com/repos/Clarifai/lambdafai/issues/events{/number}","events_url":"https://api.github.com/repos/Clarifai/lambdafai/events","assignees_url":"https://api.github.com/repos/Clarifai/lambdafai/assignees{/user}","branches_url":"https://api.github.com/repos/Clarifai/lambdafai/branches{/branch}","tags_url":"https://api.github.com/repos/Clarifai/lambdafai/tags","blobs_url":"https://api.github.com/repos/Clarifai/lambdafai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clarifai/lambdafai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clarifai/lambdafai/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clarifai/lambdafai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clarifai/lambdafai/statuses/{sha}","languages_url":"https://api.github.com/repos/Clarifai/lambdafai/languages","stargazers_url":"https://api.github.com/repos/Clarifai/lambdafai/stargazers","contributors_url":"https://api.github.com/repos/Clarifai/lambdafai/contributors","subscribers_url":"https://api.github.com/repos/Clarifai/lambdafai/subscribers","subscription_url":"https://api.github.com/repos/Clarifai/lambdafai/subscription","commits_url":"https://api.github.com/repos/Clarifai/lambdafai/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clarifai/lambdafai/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clarifai/lambdafai/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clarifai/lambdafai/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clarifai/lambdafai/contents/{+path}","compare_url":"https://api.github.com/repos/Clarifai/lambdafai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clarifai/lambdafai/merges","archive_url":"https://api.github.com/repos/Clarifai/lambdafai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clarifai/lambdafai/downloads","issues_url":"https://api.github.com/repos/Clarifai/lambdafai/issues{/number}","pulls_url":"https://api.github.com/repos/Clarifai/lambdafai/pulls{/number}","milestones_url":"https://api.github.com/repos/Clarifai/lambdafai/milestones{/number}","notifications_url":"https://api.github.com/repos/Clarifai/lambdafai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clarifai/lambdafai/labels{/name}","releases_url":"https://api.github.com/repos/Clarifai/lambdafai/releases{/id}","deployments_url":"https://api.github.com/repos/Clarifai/lambdafai/deployments","created_at":"2016-03-18T15:32:49Z","updated_at":"2016-04-29T08:39:01Z","pushed_at":"2016-05-12T16:38:46Z","git_url":"git://github.com/Clarifai/lambdafai.git","ssh_url":"git@github.com:Clarifai/lambdafai.git","clone_url":"https://github.com/Clarifai/lambdafai.git","svn_url":"https://github.com/Clarifai/lambdafai","homepage":"","size":154,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":19,"default_branch":"master"}},"base":{"label":"Clarifai:master","ref":"master","sha":"379dcbcfa9f7f4db06e6f81e72755165e4ee9ab2","user":{"login":"Clarifai","id":8550654,"avatar_url":"https://avatars.githubusercontent.com/u/8550654?v=3","gravatar_id":"","url":"https://api.github.com/users/Clarifai","html_url":"https://github.com/Clarifai","followers_url":"https://api.github.com/users/Clarifai/followers","following_url":"https://api.github.com/users/Clarifai/following{/other_user}","gists_url":"https://api.github.com/users/Clarifai/gists{/gist_id}","starred_url":"https://api.github.com/users/Clarifai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clarifai/subscriptions","organizations_url":"https://api.github.com/users/Clarifai/orgs","repos_url":"https://api.github.com/users/Clarifai/repos","events_url":"https://api.github.com/users/Clarifai/events{/privacy}","received_events_url":"https://api.github.com/users/Clarifai/received_events","type":"Organization","site_admin":false},"repo":{"id":54212132,"name":"lambdafai","full_name":"Clarifai/lambdafai","owner":{"login":"Clarifai","id":8550654,"avatar_url":"https://avatars.githubusercontent.com/u/8550654?v=3","gravatar_id":"","url":"https://api.github.com/users/Clarifai","html_url":"https://github.com/Clarifai","followers_url":"https://api.github.com/users/Clarifai/followers","following_url":"https://api.github.com/users/Clarifai/following{/other_user}","gists_url":"https://api.github.com/users/Clarifai/gists{/gist_id}","starred_url":"https://api.github.com/users/Clarifai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clarifai/subscriptions","organizations_url":"https://api.github.com/users/Clarifai/orgs","repos_url":"https://api.github.com/users/Clarifai/repos","events_url":"https://api.github.com/users/Clarifai/events{/privacy}","received_events_url":"https://api.github.com/users/Clarifai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Clarifai/lambdafai","description":"Lambdafai is a simple framework for building and deploying REST APIs using AWS Lambda, API Gateway, DynamoDB, and S3.","fork":false,"url":"https://api.github.com/repos/Clarifai/lambdafai","forks_url":"https://api.github.com/repos/Clarifai/lambdafai/forks","keys_url":"https://api.github.com/repos/Clarifai/lambdafai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Clarifai/lambdafai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Clarifai/lambdafai/teams","hooks_url":"https://api.github.com/repos/Clarifai/lambdafai/hooks","issue_events_url":"https://api.github.com/repos/Clarifai/lambdafai/issues/events{/number}","events_url":"https://api.github.com/repos/Clarifai/lambdafai/events","assignees_url":"https://api.github.com/repos/Clarifai/lambdafai/assignees{/user}","branches_url":"https://api.github.com/repos/Clarifai/lambdafai/branches{/branch}","tags_url":"https://api.github.com/repos/Clarifai/lambdafai/tags","blobs_url":"https://api.github.com/repos/Clarifai/lambdafai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Clarifai/lambdafai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Clarifai/lambdafai/git/refs{/sha}","trees_url":"https://api.github.com/repos/Clarifai/lambdafai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Clarifai/lambdafai/statuses/{sha}","languages_url":"https://api.github.com/repos/Clarifai/lambdafai/languages","stargazers_url":"https://api.github.com/repos/Clarifai/lambdafai/stargazers","contributors_url":"https://api.github.com/repos/Clarifai/lambdafai/contributors","subscribers_url":"https://api.github.com/repos/Clarifai/lambdafai/subscribers","subscription_url":"https://api.github.com/repos/Clarifai/lambdafai/subscription","commits_url":"https://api.github.com/repos/Clarifai/lambdafai/commits{/sha}","git_commits_url":"https://api.github.com/repos/Clarifai/lambdafai/git/commits{/sha}","comments_url":"https://api.github.com/repos/Clarifai/lambdafai/comments{/number}","issue_comment_url":"https://api.github.com/repos/Clarifai/lambdafai/issues/comments{/number}","contents_url":"https://api.github.com/repos/Clarifai/lambdafai/contents/{+path}","compare_url":"https://api.github.com/repos/Clarifai/lambdafai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Clarifai/lambdafai/merges","archive_url":"https://api.github.com/repos/Clarifai/lambdafai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Clarifai/lambdafai/downloads","issues_url":"https://api.github.com/repos/Clarifai/lambdafai/issues{/number}","pulls_url":"https://api.github.com/repos/Clarifai/lambdafai/pulls{/number}","milestones_url":"https://api.github.com/repos/Clarifai/lambdafai/milestones{/number}","notifications_url":"https://api.github.com/repos/Clarifai/lambdafai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Clarifai/lambdafai/labels{/name}","releases_url":"https://api.github.com/repos/Clarifai/lambdafai/releases{/id}","deployments_url":"https://api.github.com/repos/Clarifai/lambdafai/deployments","created_at":"2016-03-18T15:32:49Z","updated_at":"2016-04-29T08:39:01Z","pushed_at":"2016-05-12T16:38:46Z","git_url":"git://github.com/Clarifai/lambdafai.git","ssh_url":"git@github.com:Clarifai/lambdafai.git","clone_url":"https://github.com/Clarifai/lambdafai.git","svn_url":"https://github.com/Clarifai/lambdafai","homepage":"","size":154,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Clarifai/lambdafai/pulls/60"},"html":{"href":"https://github.com/Clarifai/lambdafai/pull/60"},"issue":{"href":"https://api.github.com/repos/Clarifai/lambdafai/issues/60"},"comments":{"href":"https://api.github.com/repos/Clarifai/lambdafai/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/Clarifai/lambdafai/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/Clarifai/lambdafai/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Clarifai/lambdafai/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/Clarifai/lambdafai/statuses/fda4d0ae47cdc993cf78284895b7d202dda0a5c2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":59,"deletions":1,"changed_files":3}}