Skip to content

sunCelery/rest_admin_project

Repository files navigation

rest_admin_project

Table of content

Description

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

Install

To install the app run in terminal:

docker-compose up

Usage

Project usage as a client more visualy shown at the documentation page:

http://localhost:8000/swagger/ link available after run docker-compose

To Do

  • [] add doc-strings and annotations through out the project
  • [] refactor structure of the project (e.g. app folder for all apps)
  • [] add tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors