{"action":"opened","issue":{"url":"https://api.github.com/repos/mysociety/pombola/issues/1817","labels_url":"https://api.github.com/repos/mysociety/pombola/issues/1817/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/pombola/issues/1817/comments","events_url":"https://api.github.com/repos/mysociety/pombola/issues/1817/events","html_url":"https://github.com/mysociety/pombola/issues/1817","id":114253155,"number":1817,"title":"add an API for Pombola data","user":{"login":"mhl","id":7907,"avatar_url":"https://avatars.githubusercontent.com/u/7907?v=3","gravatar_id":"","url":"https://api.github.com/users/mhl","html_url":"https://github.com/mhl","followers_url":"https://api.github.com/users/mhl/followers","following_url":"https://api.github.com/users/mhl/following{/other_user}","gists_url":"https://api.github.com/users/mhl/gists{/gist_id}","starred_url":"https://api.github.com/users/mhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhl/subscriptions","organizations_url":"https://api.github.com/users/mhl/orgs","repos_url":"https://api.github.com/users/mhl/repos","events_url":"https://api.github.com/users/mhl/events{/privacy}","received_events_url":"https://api.github.com/users/mhl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T11:36:51Z","updated_at":"2015-10-30T11:36:51Z","closed_at":null,"body":"The API help page on Pombola sites that have `POPIT_API_URL` suggests using that PopIt as the API for Pombola data; however, we're retiring PopIt now so need an alternative API to let people programmatically use the useful data in Pombola instances. This is also something that @idesouza would like for Odekro.\r\n\r\nUsing django-rest-framework seems like a good basis for this - starting with the models in `core`, and then `hansard` next since providing structured data of debates is one of the key use cases that @idesouza mentioned. (Ideally we would migrate `hansard` to SayIt, but that's not a short term plan because of the time it's taking to do #1594, so it makes sense to do this anyway, I think.)\r\n\r\nAnother thing to consider is whether we want to require registration for use of the API key (or at least make that an option). It was certainly awkward for PopIt that we didn't have a way of contacting all the people using an instance."}}