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.

3.9 KiB

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] GET /admin/trainer Get list of trainers with hourly price Admin
[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
[x] GET /trainer/order Trainer can get reserved timeslots Trainer
[x] PUT /trainer/order/:id Trainer can change reserved timeslot Trainer
[x] POST /trainer/order/:id/cancel Trainer can cancel reserved timeslot Trainer
[x] GET /order User can get list of orders User
[x] POST /order User can request an order User
[x] PUT /order/:id User can propose new time User
[x] GET /order/:id/newtimeslots User can can get list of new timeslots User
[x] POST /order/:id/cancel User can cancel order User
[x] GET /user User can get profile information User
[x] 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
[x] POST /stripeWebhook Strip webhook Stripe