Skip to content

Commit 102e717

Browse files
ArchILLtectCopilot
andauthored
docs: fix API contract mismatch
API contract mismatch: this endpoint accepts only content but the implementation guidance in lines 66-67 and week-5-frontend-plan.md line 66 shows POST /api/stories accepting { title, content, triggers }. The backend contract should match the actual expected request body format. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2d295f0 commit 102e717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/weekly-reports/week-5/week-5-plan-frontend-draft.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Reference files that likely already exist:
3232
---
3333

3434
## 🔌 Backend Contracts (assumed per Week 5 BE plan)
35-
- `POST /api/stories` `{ content }`**201** `{ id, authorId, content, createdAt, updatedAt? }`
35+
- `POST /api/stories` `{ title, content, triggers }`**201** `{ id, authorId, title, content, triggers, createdAt, updatedAt? }`
3636
- `GET /api/stories?limit=20&before=<ISO>`**200** `Story[]` (recent first)
3737
- `GET /api/me/stories`**200** `Story[]` (current user’s stories, recent first)
3838
- `DELETE /api/stories/{id}`**204** on owner; **403** not owner; **404** unknown

0 commit comments

Comments
 (0)