{"endpoints":{"DELETE /api/auth/account":"Delete account; JSON body { password } required","DELETE /api/user/day-planner/options":"Delete option body { id }","DELETE /api/user/habit-categories":"Delete category body { id, reassignTo? }","DELETE /api/user/todos":"Delete todo body { todoId }","GET /":"This information endpoint","GET /api/auth/me":"Current user from Authorization: Bearer <token>","GET /api/habits":"Habit tracker cells for current user (JSON map)","GET /api/user/day-planner/daily":"Get today slot selections { date, slots }","GET /api/user/day-planner/options":"List day planner dropdown options","GET /api/user/flashcards":"List flashcard groups and cards","GET /api/user/flashcards/study":"Get randomized cards (optional ?groupId=...)","GET /api/user/habit-categories":"List habit categories { id, label }","GET /api/user/habits":"List habit definitions { id, label, category }","GET /api/user/meal-plan":"Get trainer meal sections and today selection/completion entry","GET /api/user/nutrition":"Get calorie/weight/water history map","GET /api/user/stoic":"Get current stoic journal entry","GET /api/user/todos":"List your todos","GET /health":"Health check endpoint","PATCH /api/habits/cell":"Set one cell { date, habitId, state }","PATCH /api/user/day-planner/options":"Edit option body { id, label }","PATCH /api/user/habit-categories":"Rename category body { id, label }","POST /api/auth/login":"Login; returns JWT bearer token","POST /api/auth/register":"Register with email and password (password stored as hash)","POST /api/user/day-planner/options":"Add option body { label }","POST /api/user/flashcards/cards":"Add a card body { groupId, front, back }","POST /api/user/flashcards/groups":"Add a flashcard group body { name }","POST /api/user/habit-categories":"Add category body { label }","POST /api/user/todos":"Add todo item body { text }","PUT /api/habits":"Merge habit cells body { cells: { \"YYYY-MM-DD_id\": \"done\"|\"none\" } }","PUT /api/user/day-planner/daily":"Save slots body { date, slots: { \"0\": optionId, ... } }","PUT /api/user/flashcards":"Replace all flashcard groups body { groups: [...] }","PUT /api/user/habits":"Replace habits body { habits: [...] }; category must exist","PUT /api/user/meal-plan":"Save today meal entry body { date, selections, completed }","PUT /api/user/nutrition":"Replace calorie/weight/water history body { history }","PUT /api/user/stoic":"Replace stoic journal entry body { date, form }"},"message":"Portfolio Auth API","timestamp":"2026-04-09T01:41:23.647210","version":"1.0.0"}
