Create GET request responsible for retrieving single workout data. Remember to check if user trying to get the data is an owner of the workout, was part of workout (is on a company list) or was granted an access (is on an access list). U can get userID from body (field user)
Example request
GET API_URL/workouts/2h8fh9h43932?userID=fja8f1j23fj9
Path parameter
workoutID
Response
Response should contain all data connected to the workout.
Create GET request responsible for retrieving single workout data. Remember to check if user trying to get the data is an owner of the workout, was part of workout (is on a company list) or was granted an access (is on an access list). U can get userID from body (field user)
Example request
GET API_URL/workouts/2h8fh9h43932?userID=fja8f1j23fj9
Path parameter
Response
Response should contain all data connected to the workout.