Laboratory work 2


Variant: custom private categories

11 mod 3 = 2

Installation

  1. cd /project_directory
  2. docker-compose up -d

Deployment

  • v1.0.0 on Heroku using GitHub actions
  • current version on Render (as web service) using existing docker file

Endpoints

GET methods:

  • /user - get all users
  • /record/user_id - get user`s records by id
  • /record/user_id&category_id - get record in category
  • /category - get all public categories
  • /category/owner_id - get private categories

POST methods:

  • /user - create new user
  • /record - create new record in category
  • /category - create public category. If private: true and owner_id: are defined in request:
  • /category - create private category