Endpoints for viewing and manipulating muscle-groups.
- Gets all muscle groups :
GET /muscle-groups/
- Get a single muscle group :
GET /muscle-groups/:pk/
- Create a muscle group :
POST /muscle-groups/
- Update a muscle group :
PUT /muscle-groups/:pk
- Delete a muscle group :
DELETE /muscle-groups/:pk
Endpoints for viewing and manipulating workouts.
- Gets all workouts :
GET /workouts/
- Get a single workout :
GET /workouts/:pk/
- Create a workout :
POST /workouts/
- Update a workout :
PUT /workouts/:pk/
- Delete a workout :
DELETE /workouts/:pk/
- Add an exercise to a workout :
POST /workouts/:pk/exercises/
- Update an exercise order in a workout :
PUT /workouts/:pk/exercises/:pk/
- Update notes, sets, repetitions, reps_in_reserve, rest_period :
PATCH /workouts/:pk/exercises/:pk
- Remove an exercise from a workout :
DELETE /workouts/:pk/exercises/:pk/
- Clone a workout :
POST /workouts/:pk/copy
Endpoints for viewing and manipulating sessions.
- Get a list of sessions :
GET /sessions/
- Get a preview list of sessions :
GET /sessions/preview/
- Get a single session :
GET /sessions/:pk/
- Create a session :
POST /sessions/
- Update a session :
PATCH /sessions/:pk/
- Delete a session :
DELETE /sessions/:pk/
- Get a session's exercises :
GET /sessions/:pk/exercises/:pk/
Endpoints for viewing and manipulating exercises.
- Get a list of exercises :
GET /exercises/
- Get a single exercise :
GET /exercises/:pk/
- Create an exercise :
POST /exercises/
- Update an exercise :
PUT /exercises/:pk/
- Delete an exercise :
DELETE /exercises/:pk/
- Add a muscle-group to an exercise :
POST /exercises/:pk/muscle-group
- Removes a primary muscle-group from an exercise :
DELETE /exercises/:pk/muscle-group/:pk/primary
- Removes a secondary muscle-group from an exercise :
DELETE /exercises/:pk/muscle-group/:pk/secondary
Endpoints for viewing and manipulating sets.
- Get all sets in a session :
GET /sessions/:pk/sets/
- Get sets in a session by exercise :
GET /sessions/:pk/exercise/:pk/sets/
- Create a set :
POST /sessions/:pk/sets/
- Update a set :
PUT /sessions/:pk/sets/:pk/
- Delete a set in a session :
DELETE /sessions/:pk/sets/:pk
- Delete all sets in a session by exercise :
DELETE /sessions/:pk/exercise/:pk/sets/
Endpoints for authentication.
- Register / logs in user via google oauth provider :
GET /auth/providers/google/
- Fetches active users session :
GET /auth/me/
- Logout user from session :
POST /auth/logout/
Endpoints that connect with Google Fit.
- Redirects to google auth page :
GET /auth/providers/google/fit
- Callback after OAuth :
GET /auth/providers/google/fit/callback
- Fetches step-data from google fit :
GET /auth/providers/google/fit/steps
Endpoints for storage.
- Get presigned uploadable URL from AWS :
GET /storage/upload