{"action":"created","issue":{"url":"https://api.github.com/repos/pjuu/pjuu/issues/58","labels_url":"https://api.github.com/repos/pjuu/pjuu/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/pjuu/pjuu/issues/58/comments","events_url":"https://api.github.com/repos/pjuu/pjuu/issues/58/events","html_url":"https://github.com/pjuu/pjuu/issues/58","id":73229574,"number":58,"title":"Simplify URL schema","user":{"login":"pjuu","id":1929544,"avatar_url":"https://avatars.githubusercontent.com/u/1929544?v=3","gravatar_id":"","url":"https://api.github.com/users/pjuu","html_url":"https://github.com/pjuu","followers_url":"https://api.github.com/users/pjuu/followers","following_url":"https://api.github.com/users/pjuu/following{/other_user}","gists_url":"https://api.github.com/users/pjuu/gists{/gist_id}","starred_url":"https://api.github.com/users/pjuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjuu/subscriptions","organizations_url":"https://api.github.com/users/pjuu/orgs","repos_url":"https://api.github.com/users/pjuu/repos","events_url":"https://api.github.com/users/pjuu/events{/privacy}","received_events_url":"https://api.github.com/users/pjuu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pjuu/pjuu/labels/design","name":"design","color":"fbca04"},{"url":"https://api.github.com/repos/pjuu/pjuu/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"pjuu","id":1929544,"avatar_url":"https://avatars.githubusercontent.com/u/1929544?v=3","gravatar_id":"","url":"https://api.github.com/users/pjuu","html_url":"https://github.com/pjuu","followers_url":"https://api.github.com/users/pjuu/followers","following_url":"https://api.github.com/users/pjuu/following{/other_user}","gists_url":"https://api.github.com/users/pjuu/gists{/gist_id}","starred_url":"https://api.github.com/users/pjuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjuu/subscriptions","organizations_url":"https://api.github.com/users/pjuu/orgs","repos_url":"https://api.github.com/users/pjuu/repos","events_url":"https://api.github.com/users/pjuu/events{/privacy}","received_events_url":"https://api.github.com/users/pjuu/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pjuu/pjuu/milestones/4","html_url":"https://github.com/pjuu/pjuu/milestones/0.9","labels_url":"https://api.github.com/repos/pjuu/pjuu/milestones/4/labels","id":1035062,"number":4,"title":"0.9","description":"","creator":{"login":"pjuu","id":1929544,"avatar_url":"https://avatars.githubusercontent.com/u/1929544?v=3","gravatar_id":"","url":"https://api.github.com/users/pjuu","html_url":"https://github.com/pjuu","followers_url":"https://api.github.com/users/pjuu/followers","following_url":"https://api.github.com/users/pjuu/following{/other_user}","gists_url":"https://api.github.com/users/pjuu/gists{/gist_id}","starred_url":"https://api.github.com/users/pjuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjuu/subscriptions","organizations_url":"https://api.github.com/users/pjuu/orgs","repos_url":"https://api.github.com/users/pjuu/repos","events_url":"https://api.github.com/users/pjuu/events{/privacy}","received_events_url":"https://api.github.com/users/pjuu/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2015-03-23T20:13:05Z","updated_at":"2015-05-11T05:52:06Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-05-05T06:56:54Z","updated_at":"2015-05-19T17:06:59Z","closed_at":null,"body":"Remove the complexity in the URLs. We should redesign them more a long the lines of a API.\r\n\r\nFor example:\r\n\r\n`/<username>/<post_id>/<reply_id>/delete`\r\n\r\nGives semantic meaning to the URL in a way that is very convoluted. `reply_id` is a reply to `post_id` which was posted by `username`. That is a little silly. It may have made sense a year or two ago in my head but it no longer does.\r\n\r\nThere is also the case where:\r\n\r\n`/<username>/<post_id>/delete`\r\n\r\nDoes the exact same job but with no reply context.\r\n\r\nI do not know the correct schema but I will give it some thought over the next couple of days. It should be really simple to write and navigate manually.\r\n\r\nThere is also some issues with semantics from old stuff is still present within the URLs."},"comment":{"url":"https://api.github.com/repos/pjuu/pjuu/issues/comments/103594662","html_url":"https://github.com/pjuu/pjuu/issues/58#issuecomment-103594662","issue_url":"https://api.github.com/repos/pjuu/pjuu/issues/58","id":103594662,"user":{"login":"mcrmonkey","id":1660673,"avatar_url":"https://avatars.githubusercontent.com/u/1660673?v=3","gravatar_id":"","url":"https://api.github.com/users/mcrmonkey","html_url":"https://github.com/mcrmonkey","followers_url":"https://api.github.com/users/mcrmonkey/followers","following_url":"https://api.github.com/users/mcrmonkey/following{/other_user}","gists_url":"https://api.github.com/users/mcrmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/mcrmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcrmonkey/subscriptions","organizations_url":"https://api.github.com/users/mcrmonkey/orgs","repos_url":"https://api.github.com/users/mcrmonkey/repos","events_url":"https://api.github.com/users/mcrmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/mcrmonkey/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T17:06:59Z","updated_at":"2015-05-19T17:06:59Z","body":"probably worth sticking as close as you can to what the url is for\r\neg:\r\n/alerts/check - check if there are new alerts for a user\r\n/alerts/show - show users alerts (?)\r\nor skip the /show part and if a user lands on /alerts it just shows the alerts. kind of a default action type thing\r\n\r\n"}}