{"action":"created","issue":{"url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android/issues/32","repository_url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android","labels_url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android/issues/32/comments","events_url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android/issues/32/events","html_url":"https://github.com/OlegKlimenko/Plamber-Android/issues/32","id":273942011,"number":32,"title":"Search books API interaction","user":{"login":"OlegKlimenko","id":5339113,"avatar_url":"https://avatars1.githubusercontent.com/u/5339113?v=4","gravatar_id":"","url":"https://api.github.com/users/OlegKlimenko","html_url":"https://github.com/OlegKlimenko","followers_url":"https://api.github.com/users/OlegKlimenko/followers","following_url":"https://api.github.com/users/OlegKlimenko/following{/other_user}","gists_url":"https://api.github.com/users/OlegKlimenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegKlimenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegKlimenko/subscriptions","organizations_url":"https://api.github.com/users/OlegKlimenko/orgs","repos_url":"https://api.github.com/users/OlegKlimenko/repos","events_url":"https://api.github.com/users/OlegKlimenko/events{/privacy}","received_events_url":"https://api.github.com/users/OlegKlimenko/received_events","type":"User","site_admin":false},"labels":[{"id":634393597,"url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android/labels/Enchancement","name":"Enchancement","color":"28a745","default":false},{"id":633989336,"url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"andrey9328","id":11340979,"avatar_url":"https://avatars2.githubusercontent.com/u/11340979?v=4","gravatar_id":"","url":"https://api.github.com/users/andrey9328","html_url":"https://github.com/andrey9328","followers_url":"https://api.github.com/users/andrey9328/followers","following_url":"https://api.github.com/users/andrey9328/following{/other_user}","gists_url":"https://api.github.com/users/andrey9328/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey9328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey9328/subscriptions","organizations_url":"https://api.github.com/users/andrey9328/orgs","repos_url":"https://api.github.com/users/andrey9328/repos","events_url":"https://api.github.com/users/andrey9328/events{/privacy}","received_events_url":"https://api.github.com/users/andrey9328/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrey9328","id":11340979,"avatar_url":"https://avatars2.githubusercontent.com/u/11340979?v=4","gravatar_id":"","url":"https://api.github.com/users/andrey9328","html_url":"https://github.com/andrey9328","followers_url":"https://api.github.com/users/andrey9328/followers","following_url":"https://api.github.com/users/andrey9328/following{/other_user}","gists_url":"https://api.github.com/users/andrey9328/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey9328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey9328/subscriptions","organizations_url":"https://api.github.com/users/andrey9328/orgs","repos_url":"https://api.github.com/users/andrey9328/repos","events_url":"https://api.github.com/users/andrey9328/events{/privacy}","received_events_url":"https://api.github.com/users/andrey9328/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-11-14T21:03:56Z","updated_at":"2017-11-14T21:04:59Z","closed_at":null,"author_association":"OWNER","body":"For searching books must be used this URL:\r\n`<host>/api/v1/search-book/`\r\n\r\nRequest:\r\n```\r\n{\"user_token\": \"751c234b-ca87-4eb8-9e27-f667e7d346f3\",\r\n \"search_term\": \"<term>\",\r\n \"page\": 1}\r\n```\r\nWhere the page is the page number you want to retrieve. By default it is 1.\r\n\r\nError response (user with token not exists):\r\n```\r\n{\"status\": 404,\r\n \"details\": \"not exists\"}\r\n```\r\nSuccessful response:\r\n```\r\n{\r\n    \"status\": 200,\r\n    \"data\": {\r\n        \"books\": [\r\n            {\r\n                \"book_name\": \"dlkrgjdflkgjfg\",\r\n                \"id_author\": \"DNO\",\r\n                \"id_category\": \"IT\",\r\n                \"description\": \"dfgdfdfg\",\r\n                \"language\": \"RU\",\r\n                \"photo\": \"/media/book_cover/book_10_E9gNMYD.png\",\r\n                \"book_file\": \"/media/book_file/Evgeniy_Leonidovich_Tverdohlebov_Idealizm_i_nacional-kommunizm_jvH0EXy.pdf\",\r\n                \"who_added\": \"admin\",\r\n                \"upload_date\": \"2017-08-10T10:08:58.435996\",\r\n                \"private_book\": false,\r\n                \"url\": \"/api/v1/book/10/\"\r\n            },\r\n            {\r\n                \"book_name\": \"DNO\",\r\n                \"id_author\": \"DNO\",\r\n                \"id_category\": \"IT\",\r\n                \"description\": \"fgdfgdfg\",\r\n                \"language\": \"RU\",\r\n                \"photo\": \"/media/book_cover/book_2_UBRcqbg.png\",\r\n                \"book_file\": \"/media/book_file/polnyj-ahtung-ili-velikaya-tajnaya-kniga-ni-o-chem-i-obo-vsem-srazu_RNLsjR3.pdf\",\r\n                \"who_added\": \"admin\",\r\n                \"upload_date\": \"2017-08-10T09:50:57.081944\",\r\n                \"private_book\": false,\r\n                \"url\": \"/api/v1/book/2/\"\r\n            }\r\n        ],\r\n        \"next_page\": 3\r\n    },\r\n    \"detail\": \"successful\"\r\n}\r\n```\r\nIn the successful response there will be a list of books and the number with **next page**. This attribute must be used for next page generating. If there is no next pages the **next page** param will be **0**.\r\n\r\nAll other responses are connection lost/unhandled errors. Also will be discussed and tested"},"comment":{"url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android/issues/comments/344398039","html_url":"https://github.com/OlegKlimenko/Plamber-Android/issues/32#issuecomment-344398039","issue_url":"https://api.github.com/repos/OlegKlimenko/Plamber-Android/issues/32","id":344398039,"user":{"login":"OlegKlimenko","id":5339113,"avatar_url":"https://avatars1.githubusercontent.com/u/5339113?v=4","gravatar_id":"","url":"https://api.github.com/users/OlegKlimenko","html_url":"https://github.com/OlegKlimenko","followers_url":"https://api.github.com/users/OlegKlimenko/followers","following_url":"https://api.github.com/users/OlegKlimenko/following{/other_user}","gists_url":"https://api.github.com/users/OlegKlimenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegKlimenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegKlimenko/subscriptions","organizations_url":"https://api.github.com/users/OlegKlimenko/orgs","repos_url":"https://api.github.com/users/OlegKlimenko/repos","events_url":"https://api.github.com/users/OlegKlimenko/events{/privacy}","received_events_url":"https://api.github.com/users/OlegKlimenko/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T21:04:59Z","updated_at":"2017-11-14T21:04:59Z","author_association":"OWNER","body":"![](https://github.trello.services/images/mini-trello-icon.png) [Search books API interaction](https://trello.com/c/B3QPYubt/83-search-books-api-interaction)"}}
{"actor":{"display_login":"OlegKlimenko"}}