{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/vtex/node-vtex-api/pulls/7","id":81531599,"html_url":"https://github.com/vtex/node-vtex-api/pull/7","diff_url":"https://github.com/vtex/node-vtex-api/pull/7.diff","patch_url":"https://github.com/vtex/node-vtex-api/pull/7.patch","issue_url":"https://api.github.com/repos/vtex/node-vtex-api/issues/7","number":7,"state":"open","locked":false,"title":"Simplify context and app parameters","user":{"login":"rdumont","id":430448,"avatar_url":"https://avatars.githubusercontent.com/u/430448?v=3","gravatar_id":"","url":"https://api.github.com/users/rdumont","html_url":"https://github.com/rdumont","followers_url":"https://api.github.com/users/rdumont/followers","following_url":"https://api.github.com/users/rdumont/following{/other_user}","gists_url":"https://api.github.com/users/rdumont/gists{/gist_id}","starred_url":"https://api.github.com/users/rdumont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdumont/subscriptions","organizations_url":"https://api.github.com/users/rdumont/orgs","repos_url":"https://api.github.com/users/rdumont/repos","events_url":"https://api.github.com/users/rdumont/events{/privacy}","received_events_url":"https://api.github.com/users/rdumont/received_events","type":"User","site_admin":false},"body":"1. The `app` segment of App routes was represented by three parameters (`vendor`, `name` and `version`), one of them optional. Many times all we have is an ID (`vendor.name@version`), which is **exactly** what the API route expects. So, I think that always accepting an ID, either with or without version, makes more sense and cuts one step in most cases, besides looking cleaner.\r\n\r\n2. The `context` parameter used to be in the format `vendor.name/vendor.name/vendor.name`. This is how the API expects it, but not how it would be used programmatically. All a client knows about the context is a succession of apps, but not what joins them. Therefore, I believe that accepting an array of apps (`[ 'vendor.name', 'vendor.name', 'vendor.name' ]`) is easier to use.","created_at":"2016-08-16T19:40:26Z","updated_at":"2016-08-16T19:40:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vtex/node-vtex-api/pulls/7/commits","review_comments_url":"https://api.github.com/repos/vtex/node-vtex-api/pulls/7/comments","review_comment_url":"https://api.github.com/repos/vtex/node-vtex-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vtex/node-vtex-api/issues/7/comments","statuses_url":"https://api.github.com/repos/vtex/node-vtex-api/statuses/0e0093cdabd73455a73e1e23cf779bb54e6fefde","head":{"label":"vtex:feature/simplified-parameters","ref":"feature/simplified-parameters","sha":"0e0093cdabd73455a73e1e23cf779bb54e6fefde","user":{"login":"vtex","id":1288938,"avatar_url":"https://avatars.githubusercontent.com/u/1288938?v=3","gravatar_id":"","url":"https://api.github.com/users/vtex","html_url":"https://github.com/vtex","followers_url":"https://api.github.com/users/vtex/followers","following_url":"https://api.github.com/users/vtex/following{/other_user}","gists_url":"https://api.github.com/users/vtex/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex/subscriptions","organizations_url":"https://api.github.com/users/vtex/orgs","repos_url":"https://api.github.com/users/vtex/repos","events_url":"https://api.github.com/users/vtex/events{/privacy}","received_events_url":"https://api.github.com/users/vtex/received_events","type":"Organization","site_admin":false},"repo":{"id":59686164,"name":"node-vtex-api","full_name":"vtex/node-vtex-api","owner":{"login":"vtex","id":1288938,"avatar_url":"https://avatars.githubusercontent.com/u/1288938?v=3","gravatar_id":"","url":"https://api.github.com/users/vtex","html_url":"https://github.com/vtex","followers_url":"https://api.github.com/users/vtex/followers","following_url":"https://api.github.com/users/vtex/following{/other_user}","gists_url":"https://api.github.com/users/vtex/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex/subscriptions","organizations_url":"https://api.github.com/users/vtex/orgs","repos_url":"https://api.github.com/users/vtex/repos","events_url":"https://api.github.com/users/vtex/events{/privacy}","received_events_url":"https://api.github.com/users/vtex/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vtex/node-vtex-api","description":"VTEX I/O API Client for Node","fork":false,"url":"https://api.github.com/repos/vtex/node-vtex-api","forks_url":"https://api.github.com/repos/vtex/node-vtex-api/forks","keys_url":"https://api.github.com/repos/vtex/node-vtex-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vtex/node-vtex-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vtex/node-vtex-api/teams","hooks_url":"https://api.github.com/repos/vtex/node-vtex-api/hooks","issue_events_url":"https://api.github.com/repos/vtex/node-vtex-api/issues/events{/number}","events_url":"https://api.github.com/repos/vtex/node-vtex-api/events","assignees_url":"https://api.github.com/repos/vtex/node-vtex-api/assignees{/user}","branches_url":"https://api.github.com/repos/vtex/node-vtex-api/branches{/branch}","tags_url":"https://api.github.com/repos/vtex/node-vtex-api/tags","blobs_url":"https://api.github.com/repos/vtex/node-vtex-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vtex/node-vtex-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vtex/node-vtex-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/vtex/node-vtex-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vtex/node-vtex-api/statuses/{sha}","languages_url":"https://api.github.com/repos/vtex/node-vtex-api/languages","stargazers_url":"https://api.github.com/repos/vtex/node-vtex-api/stargazers","contributors_url":"https://api.github.com/repos/vtex/node-vtex-api/contributors","subscribers_url":"https://api.github.com/repos/vtex/node-vtex-api/subscribers","subscription_url":"https://api.github.com/repos/vtex/node-vtex-api/subscription","commits_url":"https://api.github.com/repos/vtex/node-vtex-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/vtex/node-vtex-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/vtex/node-vtex-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/vtex/node-vtex-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/vtex/node-vtex-api/contents/{+path}","compare_url":"https://api.github.com/repos/vtex/node-vtex-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vtex/node-vtex-api/merges","archive_url":"https://api.github.com/repos/vtex/node-vtex-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vtex/node-vtex-api/downloads","issues_url":"https://api.github.com/repos/vtex/node-vtex-api/issues{/number}","pulls_url":"https://api.github.com/repos/vtex/node-vtex-api/pulls{/number}","milestones_url":"https://api.github.com/repos/vtex/node-vtex-api/milestones{/number}","notifications_url":"https://api.github.com/repos/vtex/node-vtex-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vtex/node-vtex-api/labels{/name}","releases_url":"https://api.github.com/repos/vtex/node-vtex-api/releases{/id}","deployments_url":"https://api.github.com/repos/vtex/node-vtex-api/deployments","created_at":"2016-05-25T18:04:45Z","updated_at":"2016-08-12T15:04:58Z","pushed_at":"2016-08-16T19:40:26Z","git_url":"git://github.com/vtex/node-vtex-api.git","ssh_url":"git@github.com:vtex/node-vtex-api.git","clone_url":"https://github.com/vtex/node-vtex-api.git","svn_url":"https://github.com/vtex/node-vtex-api","homepage":"","size":41,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"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":2,"default_branch":"master"}},"base":{"label":"vtex:master","ref":"master","sha":"6d99f46cd3b552de6f8368a0d3575d3339a16bf5","user":{"login":"vtex","id":1288938,"avatar_url":"https://avatars.githubusercontent.com/u/1288938?v=3","gravatar_id":"","url":"https://api.github.com/users/vtex","html_url":"https://github.com/vtex","followers_url":"https://api.github.com/users/vtex/followers","following_url":"https://api.github.com/users/vtex/following{/other_user}","gists_url":"https://api.github.com/users/vtex/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex/subscriptions","organizations_url":"https://api.github.com/users/vtex/orgs","repos_url":"https://api.github.com/users/vtex/repos","events_url":"https://api.github.com/users/vtex/events{/privacy}","received_events_url":"https://api.github.com/users/vtex/received_events","type":"Organization","site_admin":false},"repo":{"id":59686164,"name":"node-vtex-api","full_name":"vtex/node-vtex-api","owner":{"login":"vtex","id":1288938,"avatar_url":"https://avatars.githubusercontent.com/u/1288938?v=3","gravatar_id":"","url":"https://api.github.com/users/vtex","html_url":"https://github.com/vtex","followers_url":"https://api.github.com/users/vtex/followers","following_url":"https://api.github.com/users/vtex/following{/other_user}","gists_url":"https://api.github.com/users/vtex/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex/subscriptions","organizations_url":"https://api.github.com/users/vtex/orgs","repos_url":"https://api.github.com/users/vtex/repos","events_url":"https://api.github.com/users/vtex/events{/privacy}","received_events_url":"https://api.github.com/users/vtex/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vtex/node-vtex-api","description":"VTEX I/O API Client for Node","fork":false,"url":"https://api.github.com/repos/vtex/node-vtex-api","forks_url":"https://api.github.com/repos/vtex/node-vtex-api/forks","keys_url":"https://api.github.com/repos/vtex/node-vtex-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vtex/node-vtex-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vtex/node-vtex-api/teams","hooks_url":"https://api.github.com/repos/vtex/node-vtex-api/hooks","issue_events_url":"https://api.github.com/repos/vtex/node-vtex-api/issues/events{/number}","events_url":"https://api.github.com/repos/vtex/node-vtex-api/events","assignees_url":"https://api.github.com/repos/vtex/node-vtex-api/assignees{/user}","branches_url":"https://api.github.com/repos/vtex/node-vtex-api/branches{/branch}","tags_url":"https://api.github.com/repos/vtex/node-vtex-api/tags","blobs_url":"https://api.github.com/repos/vtex/node-vtex-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vtex/node-vtex-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vtex/node-vtex-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/vtex/node-vtex-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vtex/node-vtex-api/statuses/{sha}","languages_url":"https://api.github.com/repos/vtex/node-vtex-api/languages","stargazers_url":"https://api.github.com/repos/vtex/node-vtex-api/stargazers","contributors_url":"https://api.github.com/repos/vtex/node-vtex-api/contributors","subscribers_url":"https://api.github.com/repos/vtex/node-vtex-api/subscribers","subscription_url":"https://api.github.com/repos/vtex/node-vtex-api/subscription","commits_url":"https://api.github.com/repos/vtex/node-vtex-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/vtex/node-vtex-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/vtex/node-vtex-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/vtex/node-vtex-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/vtex/node-vtex-api/contents/{+path}","compare_url":"https://api.github.com/repos/vtex/node-vtex-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vtex/node-vtex-api/merges","archive_url":"https://api.github.com/repos/vtex/node-vtex-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vtex/node-vtex-api/downloads","issues_url":"https://api.github.com/repos/vtex/node-vtex-api/issues{/number}","pulls_url":"https://api.github.com/repos/vtex/node-vtex-api/pulls{/number}","milestones_url":"https://api.github.com/repos/vtex/node-vtex-api/milestones{/number}","notifications_url":"https://api.github.com/repos/vtex/node-vtex-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vtex/node-vtex-api/labels{/name}","releases_url":"https://api.github.com/repos/vtex/node-vtex-api/releases{/id}","deployments_url":"https://api.github.com/repos/vtex/node-vtex-api/deployments","created_at":"2016-05-25T18:04:45Z","updated_at":"2016-08-12T15:04:58Z","pushed_at":"2016-08-16T19:40:26Z","git_url":"git://github.com/vtex/node-vtex-api.git","ssh_url":"git@github.com:vtex/node-vtex-api.git","clone_url":"https://github.com/vtex/node-vtex-api.git","svn_url":"https://github.com/vtex/node-vtex-api","homepage":"","size":41,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"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":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vtex/node-vtex-api/pulls/7"},"html":{"href":"https://github.com/vtex/node-vtex-api/pull/7"},"issue":{"href":"https://api.github.com/repos/vtex/node-vtex-api/issues/7"},"comments":{"href":"https://api.github.com/repos/vtex/node-vtex-api/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/vtex/node-vtex-api/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/vtex/node-vtex-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vtex/node-vtex-api/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/vtex/node-vtex-api/statuses/0e0093cdabd73455a73e1e23cf779bb54e6fefde"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":31,"deletions":31,"changed_files":1}}
{"actor":{"display_login":"rdumont"}}