Closed OlegKlimenko closed 6 years ago
When a user is uploading book there must be an ability to select a language of the book. This URL must be pinged: <host>/api/v1/generate-languages/ Request: {"user_token": "<user_token>"} Error response (user token not exists):
<host>/api/v1/generate-languages/
{"user_token": "<user_token>"}
{"status": 404, "details": "not exists"}
Successful response will be like this output:
{ "data": [ "RU", "UA" ], "status": "200", "detail": "successful" }
This returned list of languages must be put in the select field at upload book page in the language section.
Fetching languages list from API
When a user is uploading book there must be an ability to select a language of the book. This URL must be pinged:
<host>/api/v1/generate-languages/
Request:{"user_token": "<user_token>"}
Error response (user token not exists):Successful response will be like this output:
This returned list of languages must be put in the select field at upload book page in the language section.