OpenAPI specification: http://127.0.0.1:8000/redoc.
API queries start with /api/v1/
The YaMDb project collects user reviews of works. The works are divided into categories: Books, Movies, Music.
- User sends a request with the
email
parameter to/auth/email/
. - YaMDB sends an email with a
confirmation_code
to theemail
address. - User sends request with
email
andconfirmation_code
to/auth/token/
, user receives atoken
(JWT token) in response. - If desired, the user sends a
PATCH
request to/users/me/
and completes the fields in their profile (see documentation for description of fields).
- Anonymous - can browse descriptions, read reviews and comments.
- Authenticated User - may, like Anonymous, read anything, in addition may post reviews and rate works (movies/books/songs), may comment on others' reviews and rate them; may edit and delete their own reviews and comments.
- Moderator - the same rights as an Authenticated User plus the right to remove any reviews and comments.
- Administrator - full rights to manage the project and all its contents. Can create and delete categories and works. Can assign roles to users.
- Django Administrator - The same rights as the Administrator role.