Skip to main content

POST /api/v1/user/me/anthem

Upload hymny. Content-Type: multipart/form-data. Pole:
PoleTyp
anthemOGG Vorbis, max 10 MB
titlemax 50
authormax 32 (volitelný)
coverJPG/PNG, max 5 MB (volitelný)
Odpověď: data.anthem_id, public URL. Side effects: Achievement Anthem Uploaded se může udělit.

DELETE /api/v1/user/me/anthem

Smaže hymnu (DB záznam i soubor).

GET /anthem_gate.php?file={path}

Streaming endpoint (mimo /api/v1/). Pravidla:
  • Vyžaduje session (přihlášený uživatel).
  • Path traversal (..) odmítnuto.
  • Podpora HTTP Range (Partial Content / 206).
Content-Type: audio/ogg.

Datový model

Tabulka user_anthems:
SloupecTyp
idUUID
user_idUUID
anthemUUID FK na user_uploads
coverUUID FK na user_uploads (nullable)
title, authorstring
created_atdatetime
Soubory v uploads/user/{user_id}/{uuid}.ogg.