initial md submit

This commit is contained in:
2026-01-28 14:23:08 +01:00
commit 71f61bb122
5 changed files with 195 additions and 0 deletions

26
API.md Normal file
View File

@@ -0,0 +1,26 @@
# API Contract (MVP)
All endpoints are JSON. Player identity comes from HttpOnly cookie `player`.
## State
GET /api/state
## Player
GET /api/me
POST /api/me/name
## Suggestions
GET /api/suggestions/mine
POST /api/suggestions
GET /api/suggestions/all
## Votes
GET /api/votes/mine
POST /api/votes
## Results
GET /api/results
## Admin
POST /api/admin/phase
POST /api/admin/reset