{"action":"created","issue":{"url":"https://api.github.com/repos/diaspora/diaspora/issues/6636","labels_url":"https://api.github.com/repos/diaspora/diaspora/issues/6636/labels{/name}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/6636/comments","events_url":"https://api.github.com/repos/diaspora/diaspora/issues/6636/events","html_url":"https://github.com/diaspora/diaspora/pull/6636","id":126209086,"number":6636,"title":"Add initial posts and author routes for API","user":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-12T15:51:05Z","updated_at":"2016-01-12T15:52:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/6636","html_url":"https://github.com/diaspora/diaspora/pull/6636","diff_url":"https://github.com/diaspora/diaspora/pull/6636.diff","patch_url":"https://github.com/diaspora/diaspora/pull/6636.patch"},"body":"These routes should comply with http://jsonapi.org/format/.\r\n\r\nThe following routes have been added:\r\n\r\napi_v0_post_relationships_author\r\n\r\n- Scope: read       \r\n- /api/v0/posts/:post_id/relationships/author(.:format)   \r\n- api/v0/posts#show_relationship {:relationship=>\"author\"}\r\n- This gets the author relationship of the post.\r\n\r\napi_v0_post_author\r\n\t \r\n- Scope: read       \r\n- /api/v0/posts/:post_id/author(.:format)                 \r\n- api/v0/people#get_related_resource {:relationship=>\"author\", :source=>\"api/v0/posts\"}\r\n- This gets the author of the post unless the author's account has closed\r\n\r\napi_v0_posts\r\n\r\n- Scope: read/write \r\n- /api/v0/posts(.:format)                                \r\n- api/v0/posts#create\r\n- This creates a posts and sends it to the aspects specified in data/attributes/aspect_ids\r\n\t\t\t\r\napi_v0_post\t\t\t \r\n- Scope: read      \r\n- /api/v0/posts/:id(.:format)                            \r\n- api/v0/posts#show\r\n- This gets post by its id or guid if it is visible from the current user.\r\n\t\r\napi_v0_person_relationships_posts\t\t\t\t\t  \r\n\r\n- Scope: read       \r\n- /api/v0/people/:person_id/relationships/posts(.:format) \r\n- api/v0/people#show_relationship {:relationship=>\"posts\"}\r\n- This gets the relationship ids of the post that are visible from the current user.\r\n\t\r\napi_v0_person_posts\r\n- Scope: read       \r\n- /api/v0/people/:person_id/posts(.:format)               \r\n- api/v0/posts#get_related_resources {:relationship=>\"posts\", :source=>\"api/v0/people\"}\r\n- This gets the contents of the posts that are visible from the current user.\r\n\t\r\napi_v0_person\r\n\r\n- Scope: openid     \r\n- /api/v0/people/:id(.:format)                            \r\n- api/v0/people#show\r\n- This gets the person from their guid or diaspora handle.\r\n\r\n\r\nSee the tests for more details."},"comment":{"url":"https://api.github.com/repos/diaspora/diaspora/issues/comments/170954804","html_url":"https://github.com/diaspora/diaspora/pull/6636#issuecomment-170954804","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/6636","id":170954804,"user":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T15:52:46Z","updated_at":"2016-01-12T15:52:46Z","body":"Also this is my first attempt at monkey-patching – I would be happy to learn any cleaner methods of overriding the gem."}}