Retrieves the current user's subscriptions for a specific gym.
Name | Type | Required | Description | Example |
---|---|---|---|---|
gym-id | int | Yes | ID of the gym | 123 |
GET /api/v1/gyms/123/subscriptions/my-subscriptions
Authorization: Bearer {token}
Returns a list of the user's gym subscriptions.
[
{ /* gym subscription resource */ },
{ /* gym subscription resource */ }
]
For a full schema, see Gym Subscription Resource.
Status | Description | Reference |
---|---|---|
404 | Gym not found | Not-found error |
401 | Unauthorized | Authentication error |