{"action":"opened","issue":{"url":"https://api.github.com/repos/cmbi/whynot/issues/44","repository_url":"https://api.github.com/repos/cmbi/whynot","labels_url":"https://api.github.com/repos/cmbi/whynot/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/cmbi/whynot/issues/44/comments","events_url":"https://api.github.com/repos/cmbi/whynot/issues/44/events","html_url":"https://github.com/cmbi/whynot/issues/44","id":192510785,"number":44,"title":"Expand API to allow modifications","user":{"login":"jonblack","id":175080,"avatar_url":"https://avatars.githubusercontent.com/u/175080?v=3","gravatar_id":"","url":"https://api.github.com/users/jonblack","html_url":"https://github.com/jonblack","followers_url":"https://api.github.com/users/jonblack/followers","following_url":"https://api.github.com/users/jonblack/following{/other_user}","gists_url":"https://api.github.com/users/jonblack/gists{/gist_id}","starred_url":"https://api.github.com/users/jonblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonblack/subscriptions","organizations_url":"https://api.github.com/users/jonblack/orgs","repos_url":"https://api.github.com/users/jonblack/repos","events_url":"https://api.github.com/users/jonblack/events{/privacy}","received_events_url":"https://api.github.com/users/jonblack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-30T09:05:39Z","updated_at":"2016-11-30T09:05:39Z","closed_at":null,"body":"Currently the API only provides two functions:\r\n\r\n1. annotations: gets the list of annotations for the given pdb id\r\n2. entries: gets all entries in a given databank and state (PRESENT, VALID, etc)\r\n\r\nThere are two generic use cases for the API:\r\n\r\n1. Allow other services to update whynot when an entry is missing by providing the annotation. This would primarily be used by the databank update scripts. It has the knock on effect that whynot wouldn't need to crawl and annotate itself anymore, which performs poorly and often lags behind the real state of the databanks.\r\n2. Allow humans to manually update entries. Currently this is done by placing files in a `comment` and `uncomment` folder on the server, which is not ideal.\r\n\r\nI also think this is a good opportunity to standardise the API using a hypermedia format like JSON-API and consolidate the API endpoints.\r\n\r\n**Need to propose the API endpoints based on resources.**"}}
{"actor":{"display_login":"jonblack"}}