{"action":"created","issue":{"url":"https://api.github.com/repos/Nth-iteration-labs/streamingbandit/issues/33","repository_url":"https://api.github.com/repos/Nth-iteration-labs/streamingbandit","labels_url":"https://api.github.com/repos/Nth-iteration-labs/streamingbandit/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/Nth-iteration-labs/streamingbandit/issues/33/comments","events_url":"https://api.github.com/repos/Nth-iteration-labs/streamingbandit/issues/33/events","html_url":"https://github.com/Nth-iteration-labs/streamingbandit/issues/33","id":258312551,"number":33,"title":"Follow REST specs when setting resources / paths","user":{"login":"robinvanemden","id":95014,"avatar_url":"https://avatars0.githubusercontent.com/u/95014?v=4","gravatar_id":"","url":"https://api.github.com/users/robinvanemden","html_url":"https://github.com/robinvanemden","followers_url":"https://api.github.com/users/robinvanemden/followers","following_url":"https://api.github.com/users/robinvanemden/following{/other_user}","gists_url":"https://api.github.com/users/robinvanemden/gists{/gist_id}","starred_url":"https://api.github.com/users/robinvanemden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinvanemden/subscriptions","organizations_url":"https://api.github.com/users/robinvanemden/orgs","repos_url":"https://api.github.com/users/robinvanemden/repos","events_url":"https://api.github.com/users/robinvanemden/events{/privacy}","received_events_url":"https://api.github.com/users/robinvanemden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-09-17T15:48:02Z","updated_at":"2017-09-17T16:23:56Z","closed_at":null,"author_association":"COLLABORATOR","body":"At the time, we have all kinds of calls with different styles of resource definitions and paths. You don't really want that - it makes connecting rest based frameworks more difficult. For an idea of how these things are mostly setup:\r\n\r\n- [JSONPlaceholder](http://jsonplaceholder.typicode.com/)\r\n- [RestApiTutorial](http://www.restapitutorial.com/lessons/restfulresourcenaming.html)\r\n- [An illustrative image](https://raw.githubusercontent.com/metosin/compojure-api/master/examples/reusable-resources/screenshot.png)\r\n- etc \r\n\r\nThat means our api would work something like this:\r\n\r\n```\r\nWhat you want to do   How to call a REST api to get this done\r\n\r\nGET_LIST              GET http://my.api.url/posts?sort=['title','ASC']&range=[0, 24]&filter={title:'bar'}\r\nGET_ONE               GET http://my.api.url/posts/123\r\nCREATE                POST http://my.api.url/posts/123\r\nUPDATE                PUT http://my.api.url/posts/123\r\nDELETE                DELETE http://my.api.url/posts/123\r\nGET_MANY              GET http://my.api.url/posts?filter={ids:[123,456,789]}\r\nGET_MANY_REFERENCE    GET http://my.api.url/posts?filter={author_id:345}\r\n```\r\nSo use just one level deep resources, without .json, not:\r\n`GET /admin/exp/list.json`\r\nbut:\r\n`GET /exp`\r\n\r\nNot:\r\n`GET /admin/exp/123/get.json`\r\nbut\r\n`GET /exp/123`\r\n\r\nNot:\r\n/admin/user/add.json?username=USERNAME&password=PASSWORD \r\nbut: \r\n```\r\nPOST /users\r\n Parameters\r\n username:username \r\n password:password\r\n```\r\nIf we would be exposing our API according to ie http://jsonplaceholder.typicode.com/  I would say we are doing well?"},"comment":{"url":"https://api.github.com/repos/Nth-iteration-labs/streamingbandit/issues/comments/330059997","html_url":"https://github.com/Nth-iteration-labs/streamingbandit/issues/33#issuecomment-330059997","issue_url":"https://api.github.com/repos/Nth-iteration-labs/streamingbandit/issues/33","id":330059997,"user":{"login":"robinvanemden","id":95014,"avatar_url":"https://avatars0.githubusercontent.com/u/95014?v=4","gravatar_id":"","url":"https://api.github.com/users/robinvanemden","html_url":"https://github.com/robinvanemden","followers_url":"https://api.github.com/users/robinvanemden/followers","following_url":"https://api.github.com/users/robinvanemden/following{/other_user}","gists_url":"https://api.github.com/users/robinvanemden/gists{/gist_id}","starred_url":"https://api.github.com/users/robinvanemden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinvanemden/subscriptions","organizations_url":"https://api.github.com/users/robinvanemden/orgs","repos_url":"https://api.github.com/users/robinvanemden/repos","events_url":"https://api.github.com/users/robinvanemden/events{/privacy}","received_events_url":"https://api.github.com/users/robinvanemden/received_events","type":"User","site_admin":false},"created_at":"2017-09-17T16:23:56Z","updated_at":"2017-09-17T16:23:56Z","author_association":"COLLABORATOR","body":"Also: first sneak = soonish :)"}}
{"actor":{"display_login":"robinvanemden"}}