Compare workout plan required equipment to the gym equipment list to get list of the missing equipment in that gym for that workout plan.
Permission | Description |
---|---|
gyms.view_all | Required to view equipment for an inactive gym |
workout_plans.view | To view your own workout plans |
Name | Type | Required | Description | Example |
---|---|---|---|---|
gym-id | int | Yes | ID of the gym | 123 |
workout-plan-id | int | Yes | ID of the workout plan | 123 |
GET /api/v1/gyms/123/equipment/compare/123
Authorization: Bearer {token}
Returns a list of the missing equipment
{
"data": [ { /* equipment resource */ }, ... ]
}
For a full schema, see Equipment Resource.
Status | Description | Reference |
---|---|---|
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |
404 | Not found | Not-found error |