Get exercise log by ID
This operation retrieves a specific exercise log by its ID.
Endpoint structure
GET /users/{id}
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | The unique identifier of the exercise log to retrieve |
Request headers
| Header | Value | Required |
|---|---|---|
Content-Type |
application/json |
No |
Request body
This operation doesn’t require a request body.
Example request
Request:
curl -X GET {base_url}/userExerciseLogs/1
Response - Success:
Returns the exercise log object with the specified ID.
{
"id": 1,
"userId": 1,
"exerciseType": "stretch",
"exerciseName": "Piriformis Stretch",
"date": "2025-10-24",
"painBefore": 7,
"painAfter": 5,
"effective": true,
"notes": "Felt immediate relief in glute area"
}
Successful response includes:
id- Unique exercise log identifieruserId- ID of the user who recorded this exerciseexerciseType- Exercise type - stretch or strengtheningexerciseName- Name of the exercise performeddate- Date of exercise - Year-Month-Day formatpainBefore- Pain level before exercise on a 1-10 scalepainAfter- Pain level after exercise on a 1-10 scaleeffective- Whether the exercise was effective - true/falsenotes- More notes about the exercise session