diff --git a/endpoints.md b/endpoints.md new file mode 100644 index 0000000..9956c83 --- /dev/null +++ b/endpoints.md @@ -0,0 +1,28 @@ +# 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 | +| [ ] | GET | /trainer/:id/time_slot | Get available timeslots for specific trainer | | +| [ ] | GET | /trainer/time_slot | Trainer can get reserved timeslots | Trainer | +| [ ] | PUT | /trainer/time_slot/:id | Trainer can change reserved timeslot | Trainer | +| [ ] | DELTE | /trainer/time_slot/:id | Trainer can delete reserved timeslot | Trainer | +| [ ] | GET | /order | User can get list of orders | User | +| [ ] | POST | /order | User can request an 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 | |