{"action":"closed","number":2055,"pull_request":{"url":"https://api.github.com/repos/StackStorm/st2/pulls/2055","id":47210973,"html_url":"https://github.com/StackStorm/st2/pull/2055","diff_url":"https://github.com/StackStorm/st2/pull/2055.diff","patch_url":"https://github.com/StackStorm/st2/pull/2055.patch","issue_url":"https://api.github.com/repos/StackStorm/st2/issues/2055","number":2055,"state":"closed","locked":false,"title":"Version auth APIs","user":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars.githubusercontent.com/u/1839421?v=3","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"body":"## Backward compatible. You can hit unversioned and it will hit v1 APIs.\r\n\r\n```\r\n(virtualenv)/m/s/s/st2 git:master ❯❯❯ curl -X POST -H  'Content-Length: 2' -H  'Accept-Encoding: gzip, deflate, compress' -H  'Accept: */*' -H  'User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/3.16.0-30-generic' -H  'content-type: application/json' -H  'Authorization: Basic dGVzdHU6dGVzdHA=' --data-binary '{}' http://localhost:9100/tokens\r\n{\"user\": \"testu\", \"token\": \"283a9869b7574fd3b0fe25720002c386\", \"expiry\": \"2015-10-09T21:37:25.965265Z\", \"id\": \"5616e21532ed35422aa1f17c\", \"metadata\": {}}%                                                                            (virtualenv)/m/s/s/st2 git:master ❯❯❯ curl -X POST -H  'Content-Length: 2' -H  'Accept-Encoding: gzip, deflate, compress' -H  'Accept: */*' -H  'User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/3.16.0-30-generic' -H  'content-type: application/json' -H  'Authorization: Basic dGVzdHU6dGVzdHA=' --data-binary '{}' http://localhost:9100/v1/tokens\r\n{\"user\": \"testu\", \"token\": \"4d3ad878560d40379226497bf4b7fa11\", \"expiry\": \"2015-10-09T21:37:30.064713Z\", \"id\": \"5616e21a32ed35422aa1f17d\", \"metadata\": {}}%                                                                          (v(virtualenv)/m/s/s/st2 git:master ❯❯❯\r\n```\r\n\r\nTODO:\r\n\r\n* - [x] Changelog\r\n* - [x] Docs\r\n\r\nNOTE:\r\n\r\n* I am not fixing CLI and UI right now. I'll open a JIRA to hit versioned APIs. This is an intrusive change given release is next week. ","created_at":"2015-10-08T21:48:30Z","updated_at":"2015-10-10T00:01:20Z","closed_at":"2015-10-10T00:01:20Z","merged_at":"2015-10-10T00:01:20Z","merge_commit_sha":"4e3fcefbd3fdf0abae64685a8132cba4ee5fa2c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StackStorm/st2/pulls/2055/commits","review_comments_url":"https://api.github.com/repos/StackStorm/st2/pulls/2055/comments","review_comment_url":"https://api.github.com/repos/StackStorm/st2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StackStorm/st2/issues/2055/comments","statuses_url":"https://api.github.com/repos/StackStorm/st2/statuses/33440e49243077e266a3330e631d7ccb6f760c66","head":{"label":"lakshmi-kannan:STORM-864/versioned_auth_apis","ref":"STORM-864/versioned_auth_apis","sha":"33440e49243077e266a3330e631d7ccb6f760c66","user":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars.githubusercontent.com/u/1839421?v=3","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"repo":{"id":26183288,"name":"st2","full_name":"lakshmi-kannan/st2","owner":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars.githubusercontent.com/u/1839421?v=3","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lakshmi-kannan/st2","description":"Home of the StackStorm automation platform.","fork":true,"url":"https://api.github.com/repos/lakshmi-kannan/st2","forks_url":"https://api.github.com/repos/lakshmi-kannan/st2/forks","keys_url":"https://api.github.com/repos/lakshmi-kannan/st2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lakshmi-kannan/st2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lakshmi-kannan/st2/teams","hooks_url":"https://api.github.com/repos/lakshmi-kannan/st2/hooks","issue_events_url":"https://api.github.com/repos/lakshmi-kannan/st2/issues/events{/number}","events_url":"https://api.github.com/repos/lakshmi-kannan/st2/events","assignees_url":"https://api.github.com/repos/lakshmi-kannan/st2/assignees{/user}","branches_url":"https://api.github.com/repos/lakshmi-kannan/st2/branches{/branch}","tags_url":"https://api.github.com/repos/lakshmi-kannan/st2/tags","blobs_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/refs{/sha}","trees_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lakshmi-kannan/st2/statuses/{sha}","languages_url":"https://api.github.com/repos/lakshmi-kannan/st2/languages","stargazers_url":"https://api.github.com/repos/lakshmi-kannan/st2/stargazers","contributors_url":"https://api.github.com/repos/lakshmi-kannan/st2/contributors","subscribers_url":"https://api.github.com/repos/lakshmi-kannan/st2/subscribers","subscription_url":"https://api.github.com/repos/lakshmi-kannan/st2/subscription","commits_url":"https://api.github.com/repos/lakshmi-kannan/st2/commits{/sha}","git_commits_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/commits{/sha}","comments_url":"https://api.github.com/repos/lakshmi-kannan/st2/comments{/number}","issue_comment_url":"https://api.github.com/repos/lakshmi-kannan/st2/issues/comments{/number}","contents_url":"https://api.github.com/repos/lakshmi-kannan/st2/contents/{+path}","compare_url":"https://api.github.com/repos/lakshmi-kannan/st2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lakshmi-kannan/st2/merges","archive_url":"https://api.github.com/repos/lakshmi-kannan/st2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lakshmi-kannan/st2/downloads","issues_url":"https://api.github.com/repos/lakshmi-kannan/st2/issues{/number}","pulls_url":"https://api.github.com/repos/lakshmi-kannan/st2/pulls{/number}","milestones_url":"https://api.github.com/repos/lakshmi-kannan/st2/milestones{/number}","notifications_url":"https://api.github.com/repos/lakshmi-kannan/st2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lakshmi-kannan/st2/labels{/name}","releases_url":"https://api.github.com/repos/lakshmi-kannan/st2/releases{/id}","created_at":"2014-11-04T18:49:03Z","updated_at":"2015-02-13T05:59:12Z","pushed_at":"2015-10-08T23:19:02Z","git_url":"git://github.com/lakshmi-kannan/st2.git","ssh_url":"git@github.com:lakshmi-kannan/st2.git","clone_url":"https://github.com/lakshmi-kannan/st2.git","svn_url":"https://github.com/lakshmi-kannan/st2","homepage":"http://www.stackstorm.com/","size":11118,"stargazers_count":0,"watchers_count":0,"language":"Python","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"}},"base":{"label":"StackStorm:master","ref":"master","sha":"df5993be816d55094100b997e30b45c7f0fee834","user":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"repo":{"id":19051806,"name":"st2","full_name":"StackStorm/st2","owner":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackStorm/st2","description":"StackStorm (aka \"IFTTT for Ops\") is event-driven automation commonly used for auto-remediation, security responses, facilitated troubleshooting, complex deployments, and more. Includes rules engine, workflow, 1500+ integrations, native ChatOps and so forth.  Zingy installer available at http://docs.stackstorm.com/install/index.html. Ping us on slack - https://stackstorm-community.slack.com/. ","fork":false,"url":"https://api.github.com/repos/StackStorm/st2","forks_url":"https://api.github.com/repos/StackStorm/st2/forks","keys_url":"https://api.github.com/repos/StackStorm/st2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackStorm/st2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackStorm/st2/teams","hooks_url":"https://api.github.com/repos/StackStorm/st2/hooks","issue_events_url":"https://api.github.com/repos/StackStorm/st2/issues/events{/number}","events_url":"https://api.github.com/repos/StackStorm/st2/events","assignees_url":"https://api.github.com/repos/StackStorm/st2/assignees{/user}","branches_url":"https://api.github.com/repos/StackStorm/st2/branches{/branch}","tags_url":"https://api.github.com/repos/StackStorm/st2/tags","blobs_url":"https://api.github.com/repos/StackStorm/st2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackStorm/st2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackStorm/st2/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackStorm/st2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackStorm/st2/statuses/{sha}","languages_url":"https://api.github.com/repos/StackStorm/st2/languages","stargazers_url":"https://api.github.com/repos/StackStorm/st2/stargazers","contributors_url":"https://api.github.com/repos/StackStorm/st2/contributors","subscribers_url":"https://api.github.com/repos/StackStorm/st2/subscribers","subscription_url":"https://api.github.com/repos/StackStorm/st2/subscription","commits_url":"https://api.github.com/repos/StackStorm/st2/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackStorm/st2/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackStorm/st2/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackStorm/st2/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackStorm/st2/contents/{+path}","compare_url":"https://api.github.com/repos/StackStorm/st2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackStorm/st2/merges","archive_url":"https://api.github.com/repos/StackStorm/st2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackStorm/st2/downloads","issues_url":"https://api.github.com/repos/StackStorm/st2/issues{/number}","pulls_url":"https://api.github.com/repos/StackStorm/st2/pulls{/number}","milestones_url":"https://api.github.com/repos/StackStorm/st2/milestones{/number}","notifications_url":"https://api.github.com/repos/StackStorm/st2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackStorm/st2/labels{/name}","releases_url":"https://api.github.com/repos/StackStorm/st2/releases{/id}","created_at":"2014-04-23T00:51:34Z","updated_at":"2015-10-09T23:26:12Z","pushed_at":"2015-10-10T00:01:20Z","git_url":"git://github.com/StackStorm/st2.git","ssh_url":"git@github.com:StackStorm/st2.git","clone_url":"https://github.com/StackStorm/st2.git","svn_url":"https://github.com/StackStorm/st2","homepage":"http://www.stackstorm.com/","size":29306,"stargazers_count":877,"watchers_count":877,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":59,"forks":77,"open_issues":59,"watchers":877,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2055"},"html":{"href":"https://github.com/StackStorm/st2/pull/2055"},"issue":{"href":"https://api.github.com/repos/StackStorm/st2/issues/2055"},"comments":{"href":"https://api.github.com/repos/StackStorm/st2/issues/2055/comments"},"review_comments":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2055/comments"},"review_comment":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2055/commits"},"statuses":{"href":"https://api.github.com/repos/StackStorm/st2/statuses/33440e49243077e266a3330e631d7ccb6f760c66"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars.githubusercontent.com/u/1839421?v=3","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":69,"deletions":12,"changed_files":9}}