{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3028","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3028/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3028/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3028/events","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3028","id":86716201,"number":3028,"title":"Rework apiv2url to use uri.js","user":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/36","html_url":"https://github.com/CenterForOpenScience/osf.io/milestones/0.39.0","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/36/labels","id":1141758,"number":36,"title":"0.39.0","description":"PR's Sprint Release ..... How many can we get in? : - )","creator":{"login":"lbanner","id":2964829,"avatar_url":"https://avatars.githubusercontent.com/u/2964829?v=3","gravatar_id":"","url":"https://api.github.com/users/lbanner","html_url":"https://github.com/lbanner","followers_url":"https://api.github.com/users/lbanner/followers","following_url":"https://api.github.com/users/lbanner/following{/other_user}","gists_url":"https://api.github.com/users/lbanner/gists{/gist_id}","starred_url":"https://api.github.com/users/lbanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbanner/subscriptions","organizations_url":"https://api.github.com/users/lbanner/orgs","repos_url":"https://api.github.com/users/lbanner/repos","events_url":"https://api.github.com/users/lbanner/events{/privacy}","received_events_url":"https://api.github.com/users/lbanner/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":30,"state":"open","created_at":"2015-05-31T16:52:13Z","updated_at":"2015-06-10T17:27:51Z","due_on":"2015-06-12T04:00:00Z","closed_at":null},"comments":3,"created_at":"2015-06-09T19:56:48Z","updated_at":"2015-06-10T17:32:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3028","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3028","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/3028.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/3028.patch"},"body":"## Purpose\r\nPer @sloria feedback in #3012, reworked JS `apiV2Url` helper function to use URI.js. This will encourage consistent URL construction across various OSF libraries.\r\n\r\nNeeded a small workaround to join paths with trailing + leading slashes (eg `http://osf.io/api/v2/` + `/users/4urxt`), as otherwise encountered double slashes in result. Open to feedback if there's a more elegant way.\r\n"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/110845355","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3028#issuecomment-110845355","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3028","id":110845355,"user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T17:32:57Z","updated_at":"2015-06-10T17:32:57Z","body":"Just a minor change and this is good to merge."}}