Umfragen-Plugin (0.32.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 5m33s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 5m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 6m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m9s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m55s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m12s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m52s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 12:54:17 +00:00
parent 08953d52cb
commit 3f67fde50b
153 changed files with 2075 additions and 329 deletions

View file

@ -57,12 +57,15 @@ Tokens deaktivierter Konten gelten sofort nicht mehr.
| GET | `/events` | anstehende Termine, je mit eigenem Anmeldestand (`registration`) |
| GET | `/events/{id}` | Termin mit Beschreibung (HTML), Kalenderdatei (`ics_url`) und `registration` |
| POST/DELETE | `/events/{id}/registration` | an- bzw. abmelden (`{ "note": "…" }` optional) → `{ message, data: registration }` |
| GET | `/polls` | Umfragen: `{ data: { open: […], closed: […] } }` |
| GET | `/polls/{id}` | Umfrage mit Fragen, eigenem Stand (`voted`, `can_vote`) und – falls freigegeben – `results` |
| POST | `/polls/{id}/vote` | abstimmen: `{ "answers": { "<frage-id>": "<antwort-id>" \| ["…"] \| 3 \| "Text" } }` |
`registration` ist `null` ohne Anmeldung, sonst
`{ enabled, open, capacity, confirmed, free, waitlist, waiting, status, position, note, deadline }` –
`status` ist `null`, `"confirmed"` oder `"waitlist"`, `position` der Platz auf der Warteliste.
Neuigkeiten und Termine kommen aus den gleichnamigen Plugins – ist ein Plugin deaktiviert,
Neuigkeiten, Termine und Umfragen kommen aus den gleichnamigen Plugins – ist ein Plugin deaktiviert,
fehlen seine Endpunkte (`404`).
Fehler: `401` ohne gültiges Token, `403` bei fehlendem Recht oder ausgeschlossenem Modul,