API: GET/PUT /api/today endpoints #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — scoped from Daily 100 design spec.
Repo
forgejo_admin/daily-100-apiUser Story
As a user
I want to view and update today's checklist
So that I can track my daily progress
Context
GET /api/today returns today's entry (auto-creates if missing). "Today" is determined by America/Denver timezone. PUT /api/today accepts 8 boolean fields to update. Past days are frozen — PUT must reject updates for any date that is not today. Request body:
{"doordash": true, "pushups": true, "jumprope": false, ...}.File Targets
Files the agent should modify or create:
app/routes/today.py-- GET and PUT endpoint handlersapp/schemas.py-- Pydantic request/response modelsFiles the agent should NOT touch:
app/models.py-- already defined in scaffold issueAcceptance Criteria
Test Expectations
pytest tests/test_today.pyConstraints
zoneinfo.ZoneInfo("America/Denver")for timezoneChecklist
Related
daily-100-- project