847 B
847 B
Admin API
Alle Admin-Endpunkte benötigen einen Bearer Token, außer Bootstrap Status/Login.
Base URL:
https://staysense.vanityontour.de/api
Token erhalten
curl -s -X POST https://staysense.vanityontour.de/api/admin/login \
-H "Content-Type: application/json" \
-d '{"username":"DEIN_USER","password":"DEIN_PASSWORT"}'
Token steht in session.token.
Header für Folgeanfragen
Authorization: Bearer <TOKEN>
Endpunkte
GET /admin/bootstrap/statusPOST /admin/bootstrap(nur initial)POST /admin/loginPOST /admin/logoutGET /admin/overviewGET /admin/events?limit=100POST /admin/eventsPUT /admin/events/{id}DELETE /admin/events/{id}
Beispiel: Overview
curl -s https://staysense.vanityontour.de/api/admin/overview \
-H "Authorization: Bearer <TOKEN>"