Program allow to perform different API requests through end-points:
-
/api/v1/users/:
- POST - create user
- GET - list all users
-
/api/v1/users/pk:int/
- GET - user details
- PATCH - partly change user information
- DELETE - delete user
-
/api/v1/token/ - log-in
-
/api/v1/token/refresh/ - get new access token through refresh token
-
/api/v1/weather/
- GET weather info using payload:
- {"city": "city_name", "date": "YYYY-MM-DD"}
-
/api/v1/check-memory/
- GET - request memory information from daemon
To install the app run in terminal:
docker-compose up
Project usage as a client more visualy shown at the documentation page:
http://localhost:8000/swagger/ link available after run docker-compose
- [] add doc-strings and annotations through out the project
- [] refactor structure of the project (e.g. app folder for all apps)
- [] add tests