Log a strength Workout #112

Open
opened 2026-11-27 16:43:44 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

A Person logs a whole Workout in one POST: performed_on, optional started_at and duration_s, note, and ordered entries with Sets (reps, load_g, duration_s, optional rpe, warmup) matching each Exercise's kind. Workouts are Personal data. A Workout may reference the Person's own or Household Exercises.

Acceptance criteria

  • POST then GET returns the Workout with entries in order
  • Sets that don't fit the Exercise's kind are rejected (e.g. no load_g on timed)
  • Other Persons get 404
  • Using a Household Exercise in a Personal Workout works
Part of #73 (spec: #72) ## What to build A Person logs a whole Workout in one POST: `performed_on`, optional `started_at` and `duration_s`, note, and ordered entries with Sets (`reps`, `load_g`, `duration_s`, optional `rpe`, `warmup`) matching each Exercise's kind. Workouts are Personal data. A Workout may reference the Person's own or Household Exercises. ## Acceptance criteria - [ ] POST then GET returns the Workout with entries in order - [ ] Sets that don't fit the Exercise's kind are rejected (e.g. no `load_g` on timed) - [ ] Other Persons get `404` - [ ] Using a Household Exercise in a Personal Workout works
bobby added the ready-for-agent label 2026-11-27 16:43:44 -05:00
bobby added a new dependency 2026-11-27 16:43:44 -05:00
bobby added a new dependency 2026-11-27 16:43:44 -05:00
bobby added a new dependency 2026-11-27 16:43:45 -05:00
bobby added a new dependency 2026-11-27 16:43:45 -05:00
bobby added a new dependency 2026-11-27 16:43:45 -05:00
bobby added a new dependency 2026-11-27 16:43:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#112