OnlyPlans REST API

Exercises5

This endpoint retrieves all exercises.

Description

Add new exercise to database. Must be authenticated/admin.

Description

Delete exercise from database by ID.

URL Variables
KeyValueDescription
id
Description

Fetch all exercises from database.

Query Parameters

You can combine query parameters. For example: ?body_part=Arms&difficulty=Advanced will return Advanced exercises for only Arms.

ParametersValuesDescription
nameSquat, Push%20PressSearch through all exercises.
body_partArms, Legs, Chest, Hips, Shoulders, BackBody part specific exercises.
equipmentNone, Barbell, DumbbellEquipment needed for each exercise.
difficultyBeginner, AdvancedShows all exercises by difficulty.

*All query values MUST be uppercase.


Description

Get single exercise by ID.

URL Variables
KeyValueDescription
id
Description

Update single exercise by ID

URL Variables
KeyValueDescription
id