When a user is uploading book he must enter a book name. To do as minimum duplicates as possible in a database, there is an API which will generate books list with already existing books, so for a user, there will be no need to upload a book, he just can start reading it. So this URL must be used when a user enters to 'book name' input field:
<host>/api/v1/generate-books/
So the successful response will return regular list of books, and must be outputted just book names. When user click on the name, he must be redirected to selected book page.
When the entered book_part param is empty, an empty list will be returned.
When a user is uploading book he must enter a book name. To do as minimum duplicates as possible in a database, there is an API which will generate books list with already existing books, so for a user, there will be no need to upload a book, he just can start reading it. So this URL must be used when a user enters to 'book name' input field:
<host>/api/v1/generate-books/
Request as follows:
Error response (user token not exists):
A successful response will be like this output:
So the successful response will return regular list of books, and must be outputted just book names. When user click on the name, he must be redirected to selected book page. When the entered book_part param is empty, an empty list will be returned.