Files
GameList/API.md
2026-01-28 14:23:08 +01:00

27 lines
383 B
Markdown

# 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