Vollständige API-Dokumentation für Entwickler
Alle API-Anfragen verwenden diese Base URL
https://notio.schächner.de/apihttp://localhost:9002/api⚠️ Wichtiger Hinweis: Die Production API über die Domain ist aktuell noch nicht verfügbar. Für die Entwicklung und Tests verwende bitte die lokale API-Instanz (http://localhost:9002/api). Die Production-Bereitstellung erfolgt in Kürze.
Authentifizierung mit Email und Passwort. Das ID-Token ist 1 Stunde gültig.
/api/auth/loginLogin mit Email und Passwort. Gibt ID-Token und Refresh-Token zurück.
curl -X POST "https://notio.schächner.de/api/auth/login" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "password123"
}'Response:
{
"idToken": "eyJhbGci...",
"refreshToken": "AIwUaOm...",
"expiresIn": "3600",
"localId": "user123",
"email": "user@example.com"
}/api/auth/refreshToken erneuern wenn abgelaufen.
curl -X POST "https://notio.schächner.de/api/auth/refresh" \
-H "Content-Type: application/json" \
-d '{
"refreshToken": "AIwUaOm..."
}'/api/auth/verifyToken validieren und User-Info abrufen.
curl -X POST "https://notio.schächner.de/api/auth/verify" \
-H "Content-Type: application/json" \
-d '{
"idToken": "eyJhbGci..."
}'Alle geschützten Endpoints benötigen einen Bearer Token
Authorization: Bearer eyJhbGci...Füge diesen Header bei allen Requests an geschützte Endpoints hinzu.
Bei Fragen zur API kontaktiere uns unter benedikt@schächner.de