wger-project / wger

Self hosted FLOSS fitness/workout, nutrition and weight tracker
https://wger.de
GNU Affero General Public License v3.0
3.24k stars 588 forks source link

End-to-end Workout+Set creation via API #406

Closed NegatioN closed 7 years ago

NegatioN commented 7 years ago

Hi! Love the project, and started development of a small CLI-app for quick workout journaling myself to use it. Hoping to build on that further to get some fancy statistics working later down the road.

I might be a bit slow on the uptake, but I can't seem to add any additional info for a Set in a Workout via the API? I can only add a Set in the form of:

        {
            "id": 114547,
            "order": 2,
            "sets": 1,
            "exerciseday": 61196,
            "exercises": [
                99
            ]
        }

Is there any way to enrich the info via the API that I'm missing? Primarily with rep-counts, weight and similar info

NegatioN commented 7 years ago

And, now I discovered that the place to do this is the WorkoutLog-object. So each workout has a workoutlog where we can add reps for each of the assigned sets