OlegKlimenko / Plamber-Android

The Android application for Plamber project.
https://plamber.com.ua/
Apache License 2.0
1 stars 0 forks source link

Fetching languages list from API #49

Closed OlegKlimenko closed 6 years ago

OlegKlimenko commented 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):

{"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.

OlegKlimenko commented 6 years ago

Fetching languages list from API