backend routes - dornkholland/holland_running GitHub Wiki
Here we will list the back end API routes required for the features of this web application.
- POST /api/auth/signup
- signup user
- POST /api/auth/login
- login user
- GET /api/auth/logout
- logout user
- GET /api/auth
- restore user
- POST /api/videos/
- posts a video by website owner
- GET /api/videos/
- gets all videos
- DELETE /api/videos/<video_id>
- removes video with video_id pk from database
- PUT /api/videos/<video_id>
- updates video with video_id pk in database
- GET /api/classes
- receives all classes
- POST /api/classes/
- creates a class
- PUT /api/classes/
- updates a class
- DELETE /api/classes/
- removes a class
- GET /api/user_classes/
- receives people who are booked in classes and how many
- POST /api/users/<user_id>/user_classes/
- books a class for a user
- DELETE /api/users/<user_id>/user_classes/
- removes booking from a class
- PUT /api/users/<user_id>/
- update membership values