-
Notifications
You must be signed in to change notification settings - Fork 0
backend routes
eric2523 edited this page Oct 15, 2020
·
15 revisions
-
GET /
StaticPagesController#root
-
GET /api/users/:id
- returns a user's information for User Search feature -
POST /api/users
- sign up user
-
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/workout_classes/:id
- returns information about a class -
GET /api/users/:user_id/workout_classes
- returns information about classes that a user has signed up for
-
GET /api/categories
- returns information about all categories -
GET /api/classes/category/:id
- returns information about a category's classes
-
GET /api/challenges
- returns info about all challenges -
GET /api/challenges/:id
- returns information about a single challenge
-
POST /api/users_workout_classes
- follow a class with user information in payload of AJAX request -
DELETE /api/users_workout_classes/:id
- unfollow a class
-
GET /api/users/:user_id/user_follows
- returns all users that a user is following -
POST /api/users/:user_id/user_follows
- follow a user with user_id asfollowed_user_id
andcurrent_user.id
asuser_id
-
DELETE /api/user_follows/:id
- unfollow a user
-
GET /api/users/:user_id/user_challenges
- returns all challenges of a user -
POST /api/challenges/:id/user_challenges
- follow a challenge usingcurrent_user.id
asuser_id
-
DELETE /api/user_challenges/:id
- unfollow a challenge