Retrieves a list of equipment assigned to a specific gym.
No authentication required.
| Permission | Description |
|---|---|
gyms.view_all | Required to view equipment for an inactive gym |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int | Yes | ID of the gym | 123 |
GET /api/v1/gyms/123/equipment
Authorization: Bearer {token}
Returns a list of gym equipment resources.
{
"data": [ { /* gym equipment resource */ }, ... ]
}
For a full schema, see Gym Equipment Resource.
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |