{"action":"created","issue":{"url":"https://api.github.com/repos/insomnia-lab/libreant/issues/160","labels_url":"https://api.github.com/repos/insomnia-lab/libreant/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/insomnia-lab/libreant/issues/160/comments","events_url":"https://api.github.com/repos/insomnia-lab/libreant/issues/160/events","html_url":"https://github.com/insomnia-lab/libreant/pull/160","id":88038787,"number":160,"title":"Api introduction","user":{"login":"ael-code","id":4229536,"avatar_url":"https://avatars.githubusercontent.com/u/4229536?v=3","gravatar_id":"","url":"https://api.github.com/users/ael-code","html_url":"https://github.com/ael-code","followers_url":"https://api.github.com/users/ael-code/followers","following_url":"https://api.github.com/users/ael-code/following{/other_user}","gists_url":"https://api.github.com/users/ael-code/gists{/gist_id}","starred_url":"https://api.github.com/users/ael-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ael-code/subscriptions","organizations_url":"https://api.github.com/users/ael-code/orgs","repos_url":"https://api.github.com/users/ael-code/repos","events_url":"https://api.github.com/users/ael-code/events{/privacy}","received_events_url":"https://api.github.com/users/ael-code/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-13T17:34:31Z","updated_at":"2015-06-13T17:53:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/insomnia-lab/libreant/pulls/160","html_url":"https://github.com/insomnia-lab/libreant/pull/160","diff_url":"https://github.com/insomnia-lab/libreant/pull/160.diff","patch_url":"https://github.com/insomnia-lab/libreant/pull/160.patch"},"body":"Overview\r\n------------\r\nApi was implemented thanks to a blueprint module inside `webant`.\r\n\r\nWith this pr we are going to expose all `GET` functionalities provided by archivant.\r\n\r\nThe rest api are graph-organized:\r\n - search and get volumes (with pagination support): `/volumes/`\r\n - get specific volume: `/volumes/<volumeID>`\r\n - get all attachments of a volume: `/volumes/<volumeID>/attachments/`\r\n - get specific attachment: `/volumes/<volumeID>/attachments/<attachmentID>`\r\n - get file associated with an attachment: `/volumes/<volumeID>/attachments/<attachmentID>/file`\r\n\r\nErrors\r\n--------\r\nThe following is an error example:\r\n```json\r\n{\r\n  \"error\": {\r\n    \"code\": 404, \r\n    \"message\": \"volume not found\",\r\n    \"details\": \"could not found volume with id: 'not666not'\"\r\n  }\r\n}\r\n```\r\nTesting\r\n----------\r\nthe blueprint is registered at `/api/v1`\r\nto start you can try with `/api/v1/volumes/`\r\n\r\nTo be done\r\n---------------\r\n - documentation\r\n - expose all other functionalities provided by archivant."},"comment":{"url":"https://api.github.com/repos/insomnia-lab/libreant/issues/comments/111736732","html_url":"https://github.com/insomnia-lab/libreant/pull/160#issuecomment-111736732","issue_url":"https://api.github.com/repos/insomnia-lab/libreant/issues/160","id":111736732,"user":{"login":"boyska","id":14236,"avatar_url":"https://avatars.githubusercontent.com/u/14236?v=3","gravatar_id":"","url":"https://api.github.com/users/boyska","html_url":"https://github.com/boyska","followers_url":"https://api.github.com/users/boyska/followers","following_url":"https://api.github.com/users/boyska/following{/other_user}","gists_url":"https://api.github.com/users/boyska/gists{/gist_id}","starred_url":"https://api.github.com/users/boyska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyska/subscriptions","organizations_url":"https://api.github.com/users/boyska/orgs","repos_url":"https://api.github.com/users/boyska/repos","events_url":"https://api.github.com/users/boyska/events{/privacy}","received_events_url":"https://api.github.com/users/boyska/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T17:53:21Z","updated_at":"2015-06-13T17:53:21Z","body":"The code seems very good. It would be incredibly cool to have unit tests for http \"things\", so that we don't have to manually test all of the APIs :/"}}