You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
3.0 KiB
Markdown
29 lines
3.0 KiB
Markdown
# 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 | |
|