{"action":"created","issue":{"url":"https://api.github.com/repos/communityshare/communityshare/issues/174","repository_url":"https://api.github.com/repos/communityshare/communityshare","labels_url":"https://api.github.com/repos/communityshare/communityshare/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/communityshare/communityshare/issues/174/comments","events_url":"https://api.github.com/repos/communityshare/communityshare/issues/174/events","html_url":"https://github.com/communityshare/communityshare/pull/174","id":175696673,"number":174,"title":"REST API: Add `/users/` endpoint","user":{"login":"dmsnell","id":5431237,"avatar_url":"https://avatars.githubusercontent.com/u/5431237?v=3","gravatar_id":"","url":"https://api.github.com/users/dmsnell","html_url":"https://github.com/dmsnell","followers_url":"https://api.github.com/users/dmsnell/followers","following_url":"https://api.github.com/users/dmsnell/following{/other_user}","gists_url":"https://api.github.com/users/dmsnell/gists{/gist_id}","starred_url":"https://api.github.com/users/dmsnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmsnell/subscriptions","organizations_url":"https://api.github.com/users/dmsnell/orgs","repos_url":"https://api.github.com/users/dmsnell/repos","events_url":"https://api.github.com/users/dmsnell/events{/privacy}","received_events_url":"https://api.github.com/users/dmsnell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/communityshare/communityshare/labels/[Skills]%20Flask","name":"[Skills] Flask","color":"d93f0b"},{"url":"https://api.github.com/repos/communityshare/communityshare/labels/[Status]%20Awaiting%20Author%20Feedback","name":"[Status] Awaiting Author Feedback","color":"1d76db"},{"url":"https://api.github.com/repos/communityshare/communityshare/labels/[Type]%20Enhancement","name":"[Type] Enhancement","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/communityshare/communityshare/milestones/4","html_url":"https://github.com/communityshare/communityshare/milestones/REST%20API","labels_url":"https://api.github.com/repos/communityshare/communityshare/milestones/4/labels","id":1908809,"number":4,"title":"REST API","description":null,"creator":{"login":"dmsnell","id":5431237,"avatar_url":"https://avatars.githubusercontent.com/u/5431237?v=3","gravatar_id":"","url":"https://api.github.com/users/dmsnell","html_url":"https://github.com/dmsnell","followers_url":"https://api.github.com/users/dmsnell/followers","following_url":"https://api.github.com/users/dmsnell/following{/other_user}","gists_url":"https://api.github.com/users/dmsnell/gists{/gist_id}","starred_url":"https://api.github.com/users/dmsnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmsnell/subscriptions","organizations_url":"https://api.github.com/users/dmsnell/orgs","repos_url":"https://api.github.com/users/dmsnell/repos","events_url":"https://api.github.com/users/dmsnell/events{/privacy}","received_events_url":"https://api.github.com/users/dmsnell/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2016-07-28T06:29:21Z","updated_at":"2016-09-08T08:40:53Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-08T08:40:53Z","updated_at":"2016-09-25T19:23:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/communityshare/communityshare/pulls/174","html_url":"https://github.com/communityshare/communityshare/pull/174","diff_url":"https://github.com/communityshare/communityshare/pull/174.diff","patch_url":"https://github.com/communityshare/communityshare/pull/174.patch"},"body":"This patch continues the \"inspiration\" work on the REST API to explore\r\nhow we can reorganize the API into a more RESTy and bandwidth-friendly\r\nnature.\r\n\r\nSignificant refactoring was also performed on the `/users/` endpoint to\r\ndecouple it from the existing user search function in the `Users` model.\r\nPulling the actual queries into the endpoint modules makes the queried\r\nmaterial more explicit and allow a bit more freedom to trim the queries\r\nand data returned.\r\n\r\nI have experimented with HATEOAS concepts here returning links for users\r\nin the search endpoint. This is convenient in standard REST API clients\r\nwhich can easily follow those links for more information. Although the\r\nlinks add considerable text content, because they are mostly repeated\r\ninformation, the byte-size after compression is significantly smaller.\r\n\r\n**Testing**\r\nExplore the API requests (with authentication) at `/rest/users/` and `/rest/users/<int:user_id>`. Make sure that things work as expected when information is missing or invalid.\r\n\r\ncc: @seanastephens @benreynwar "},"comment":{"url":"https://api.github.com/repos/communityshare/communityshare/issues/comments/249440966","html_url":"https://github.com/communityshare/communityshare/pull/174#issuecomment-249440966","issue_url":"https://api.github.com/repos/communityshare/communityshare/issues/174","id":249440966,"user":{"login":"seanastephens","id":5893305,"avatar_url":"https://avatars.githubusercontent.com/u/5893305?v=3","gravatar_id":"","url":"https://api.github.com/users/seanastephens","html_url":"https://github.com/seanastephens","followers_url":"https://api.github.com/users/seanastephens/followers","following_url":"https://api.github.com/users/seanastephens/following{/other_user}","gists_url":"https://api.github.com/users/seanastephens/gists{/gist_id}","starred_url":"https://api.github.com/users/seanastephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanastephens/subscriptions","organizations_url":"https://api.github.com/users/seanastephens/orgs","repos_url":"https://api.github.com/users/seanastephens/repos","events_url":"https://api.github.com/users/seanastephens/events{/privacy}","received_events_url":"https://api.github.com/users/seanastephens/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T19:23:06Z","updated_at":"2016-09-25T19:23:06Z","body":"@dmsnell Thanks for putting in so much work on the rest API. This feedback is aimed at \"doing in right,\" so I hope it doesn't come across as too discouraging."}}
{"actor":{"display_login":"seanastephens"}}