medods

module
v0.0.0-...-cef7651 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2024 License: GPL-3.0

README

Solution of the test task for MEDODS company.

Functionality:

  1. Create tokens:
    Request: img.png Refresh token in response body: img_1.png Access token in Authorization Header: img_2.png
  2. Refresh tokens:
    Request: img_3.png img_4.png Refresh token in response body: img_1.png Access token in Authorization Header: img_2.png

Tests

To run test use next commands. Coverage info will be recorded to tests/coverage folder:

task -d scripts tests -v

Linters

 task -d scripts linters -v

Migrations

To create migration file, use next command:

task -d scripts makemigrations NAME={{migration name}}

To apply all available migrations, use next command:

task -d scripts migrate

To migrate up to a specific version, use next command:

task -d scripts migrate_to VERSION={{migration version}}

To rollback migrations to a specific version, use next command:

task -d scripts downgrade_to VERSION={{migration version}}

To rollback all migrations (careful!), use next command:

task -d scripts downgrade_to_base

To print status of all migrations, use next command:

task -d scripts migrations_status

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL