# Endpoints | Done | Method | Path | Description | Authentication | |------|----------|--------------------------|---------------------------------------------------|----------------| | [x] | POST | /login | Login | | | [x] | POST | /register | Create account | | | [x] | GET | /center | Get list of center | | | [x] | POST | /center | Admin can create center | Admin | | [x] | PUT | /center/:id | Admin can change center | Admin | | [ ] | DELETE | /center | Admin can delete center | Admin | | [x] | GET | /trainer | Get list of trainers | | | [x] | POST | /trainer | Admin can create trainer | Admin | | [ ] | PUT | /trainer | Trainer can change profile information | Trainer | | [x] | PUT | /trainer/:id | Admin can change trainer information | Admin | | [ ] | DELETE | /trainer/:id | Admin can delete trainer | Admin | | [x] | GET | /timeslot | Filter for available timeslots | | | [x] | GET | /trainer/timeslot | Trainer can get weekly timeslots | Trainer | | [x] | POST | /trainer/timeslot | Trainer can create weekly timeslots | Trainer | | [x] | DELETE | /trainer/timeslot/:id | Trainer can delete weekly timeslots | Trainer | | [ ] | GET | /trainer/order | Trainer can get reserved timeslots | Trainer | | [ ] | PUT | /trainer/order/:id | Trainer can change reserved timeslot | Trainer | | [ ] | DELTE | /trainer/order/:id | Trainer can delete reserved timeslot | Trainer | | [ ] | GET | /order | User can get list of orders | User | | [x] | POST | /order | User can request an order | User | | [ ] | GET | /order/:id | User can get order details | User | | [ ] | POST | /order/:id/confirm | User can confirm the order | User | | [ ] | PUT | /order/:id | User can move order | User | | [ ] | DELETE | /order/:id | User can cancel order | User | | [ ] | GET | /user | User can get profile information | User | | [ ] | PUT | /user | User can change profile information | User | | [ ] | GET | /verify_email | Verify email | | | [ ] | POST | /reset_password | Request password reset | | | [ ] | POST | /new_password | Set new password | |