This PR adds support for workouts (create, get, list, update and delete) and the ability to schedule them (create, list and delete). I've attached some docs at the end of the PR.
I've opted for a bunch of pointers in the Workout struct mainly to handle nil/null. This does mean consuming isn't 100% ideal, but seemed the best compromise (over pulling in other dependencies or leaving "" all over).
This PR adds support for workouts (
create
,get
,list
,update
anddelete
) and the ability to schedule them (create
,list
anddelete
). I've attached some docs at the end of the PR.I've opted for a bunch of pointers in the
Workout
struct mainly to handlenil
/null
. This does mean consuming isn't 100% ideal, but seemed the best compromise (over pulling in other dependencies or leaving""
all over).Happy to hear feedback and adjust accordingly.
API
Create workout
See below for example workout
Get workout
Update workout
Delete workout
List workouts
Schedule workout
Get scheduled workouts
Example workout