Skip to content

Latest commit

 

History

History
83 lines (52 loc) · 2.27 KB

File metadata and controls

83 lines (52 loc) · 2.27 KB

Users documentation

Table of contents

Users

Auto-generated API documentation you can find by the link.

NOTE: to grant superuser privileges to user change the is_superuser field value in User table for this user or update user info with already registered superuser via PATCH /users/{id} endpoint.

User registration

First of all you need to register new user.

  • Registration request: img.png

  • Registration response on success: img.png

After registration you need to verify user.

User verifying

Verifying process includes request for token and user verification with this token.

  1. Getting verification token:

    • Request token for user validation: img.png

    • Token is not in response: img.png

    • You can find token in api-service logs (since the token isn't sent via email or smth else, it's just printed in the service logs): img.png

  2. Using the received token we verify the user:

    • Verifying request: img.png

    • Verifying response on success: img.png

User log in

  1. With username and password you can log in and get token:

    • User login request: img.png

    • User login response: img.png

  2. Or simple authorize with Authorize button on the docs page:

    • Authorization form: img.png

    • Successful authorization: img.png

User log out

To log out just send request to /auth/logout endpoint.

  • Logout request: img.png

  • Logout response: img.png

  • Logout response if user is not logged in: img.png