docker-compose up
ordocker-compose up --build
Ports 80 and 3306 must be free.
Info about schemas etc. you can find on http://127.0.0.1/docs
Method | URL | Description | Access rights |
---|---|---|---|
POST | /users/login | an endpoint to receive JWT | everyone |
GET | /users/me | an endpoint to fetch info about yourself | authenticated users |
POST | /users/create_user | an endpoint to create new user | everyone |
POST | /users/update_user_info | an endpoint to update your info | authenticated users |
GET | /schedule | fetch your schedule | authenticated users |
GET | /schedule/list_masters | fetch available masters | authenticated users |
GET | /schedule/master/{master_id} | fetch free hours of specific master | authenticated users |
POST | /schedule/create_an_appointment | create a visit appointment for specific time to specific master | authenticated users |
GET | /admin/list_clients | fetch all clients | admin only |
GET | /admin/client/{client_id} | fetch appointments of specific client | admin only |
GET | /admin/master/{master_id} | fetch specific masters schedule | admin only |
POST | /admin/create_master | create new master profile | admin only |