{"action":"created","issue":{"url":"https://api.github.com/repos/edx/journals/issues/66","repository_url":"https://api.github.com/repos/edx/journals","labels_url":"https://api.github.com/repos/edx/journals/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/edx/journals/issues/66/comments","events_url":"https://api.github.com/repos/edx/journals/issues/66/events","html_url":"https://github.com/edx/journals/pull/66","id":339845277,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMzk4MzMx","number":66,"title":"Create AboutPage API with Journal Structure Field","user":{"login":"BessieSteinberg","id":5060285,"node_id":"MDQ6VXNlcjUwNjAyODU=","avatar_url":"https://avatars3.githubusercontent.com/u/5060285?v=4","gravatar_id":"","url":"https://api.github.com/users/BessieSteinberg","html_url":"https://github.com/BessieSteinberg","followers_url":"https://api.github.com/users/BessieSteinberg/followers","following_url":"https://api.github.com/users/BessieSteinberg/following{/other_user}","gists_url":"https://api.github.com/users/BessieSteinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/BessieSteinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BessieSteinberg/subscriptions","organizations_url":"https://api.github.com/users/BessieSteinberg/orgs","repos_url":"https://api.github.com/users/BessieSteinberg/repos","events_url":"https://api.github.com/users/BessieSteinberg/events{/privacy}","received_events_url":"https://api.github.com/users/BessieSteinberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T13:35:28Z","updated_at":"2018-07-10T13:41:11Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/edx/journals/pulls/66","html_url":"https://github.com/edx/journals/pull/66","diff_url":"https://github.com/edx/journals/pull/66.diff","patch_url":"https://github.com/edx/journals/pull/66.patch"},"body":"- Enabled the wagtail 'pages' api which lets you query journal pages\r\n- Added a custom field to AboutPage to get the hierarchical structure of\r\n  the journal\r\n\r\nUsage (on local devstack):\r\n- To get a json blob of all pages in the Journals service go to:\r\n  http://localhost:18606/api/v1/content/pages/\r\n  - There are a variety of filtering and ordering options. For more\r\n    information see the wagtail documentation:\r\n    http://docs.wagtail.io/en/v1.7/advanced_topics/api/v2/usage.html\r\n- To get the hierarchical structure of a journal go to:\r\n  http://localhost:18606/api/v1/content/pages/?slug=JOURNAL-ABOUT-PAGE-SLUG&type=journals.JournalAboutPage&fields=get_journal_structure\r\n\r\nRemaining Work:\r\n- Testing for this API endpoint"},"comment":{"url":"https://api.github.com/repos/edx/journals/issues/comments/403826024","html_url":"https://github.com/edx/journals/pull/66#issuecomment-403826024","issue_url":"https://api.github.com/repos/edx/journals/issues/66","id":403826024,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzgyNjAyNA==","user":{"login":"BessieSteinberg","id":5060285,"node_id":"MDQ6VXNlcjUwNjAyODU=","avatar_url":"https://avatars3.githubusercontent.com/u/5060285?v=4","gravatar_id":"","url":"https://api.github.com/users/BessieSteinberg","html_url":"https://github.com/BessieSteinberg","followers_url":"https://api.github.com/users/BessieSteinberg/followers","following_url":"https://api.github.com/users/BessieSteinberg/following{/other_user}","gists_url":"https://api.github.com/users/BessieSteinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/BessieSteinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BessieSteinberg/subscriptions","organizations_url":"https://api.github.com/users/BessieSteinberg/orgs","repos_url":"https://api.github.com/users/BessieSteinberg/repos","events_url":"https://api.github.com/users/BessieSteinberg/events{/privacy}","received_events_url":"https://api.github.com/users/BessieSteinberg/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T13:41:10Z","updated_at":"2018-07-10T13:41:10Z","author_association":"CONTRIBUTOR","body":"Question for @tuchfarber and @bill-filler, I made the endpoint path for pages: ```/api/v1/content/pages/``` and I figured we could have ```/api/v1/content/images/``` and ```/api/v1/content/documents/```.  I did this because I couldn't think of a clean way to use ```/api/v1/pages/```.  We would need to use two different routers at ```/api/v1/```, the default router and the wagtail router. So I have two questions:\r\n\r\n# Is there a way to use two different routers at the same path?\r\n# If not, how do you feel about the path ```/api/v1/content/```? I think it makes sense, but I'm open to suggestions!"}}
{"actor":{"display_login":"BessieSteinberg"}}