2026-05-05 21:42:56 +02:00
|
|
|
|
# Endpoint-Audit: Mandanten & Governance
|
|
|
|
|
|
|
|
|
|
|
|
Fortlaufend gemäß `ACCESS_LAYER_AND_GOVERNANCE_PLAN.md` Stufe A–C.
|
|
|
|
|
|
|
|
|
|
|
|
| Router / Bereich | Beispiel-Endpunkt | tenant-relevant | `Depends(get_tenant_context)` / Kontext | Governance geprüft (Liste+Detail) | Notizen |
|
|
|
|
|
|
|------------------|-------------------|-----------------|----------------------------------------|-------------------------------------|---------|
|
|
|
|
|
|
| profiles | `GET /api/profiles/me` | ja | `resolve_tenant_context` inline (`invalid_header_policy=ignore`) | teils | + `effective_club_id`; veralteter Header bricht Refresh nicht |
|
|
|
|
|
|
| profiles | `PUT /api/profiles/{id}` | ja | — | `active_club_id` Mitgliedschaft | TenantContext später auch hier |
|
|
|
|
|
|
| clubs | `GET /api/clubs` | ja | — | Mitgliedschaft vs Admin | Liste gefiltert Nicht-Admins |
|
|
|
|
|
|
| clubs | CRUD Organisation | ja | — | `can_manage_club_org` / member | schrittweise auf TenantContext |
|
|
|
|
|
|
| club_memberships | `/clubs/{id}/members*` | ja | geplant | ja | |
|
|
|
|
|
|
| club_join_requests | `/clubs/{id}/join-requests*` | ja | geplant | ja | |
|
2026-05-05 21:51:53 +02:00
|
|
|
|
| exercises | alle geschützten `/api/exercises*` (Liste war schon) | ja | `get_tenant_context` | Detail visibility; Mutations Owner/Admin | PATCH ohne zusätzliche assert_valid bei Visibility — nächster Schritt |
|
2026-05-05 21:46:41 +02:00
|
|
|
|
| training_planning | alle geschützten Endpoints | ja | `get_tenant_context` | ja | Vorlagen-Liste wie Übungen; POST Vorlage Default club_id |
|
|
|
|
|
|
| training_framework_programs | alle geschützten Endpoints | ja | `get_tenant_context` | ja | Liste + POST Default club_id |
|
2026-05-05 21:42:56 +02:00
|
|
|
|
| admin_users | `GET /api/admin/users` | Plattform | optional | Admin-Rolle | |
|
|
|
|
|
|
| Sonstige | skills, methods, catalogs | zu klären | — | oft global | Zeilen ergänzen |
|
|
|
|
|
|
|
|
|
|
|
|
**Legende:** „geplant“ = beim nächsten Umbau dieser Router `get_tenant_context` verwenden bzw. zentrale Governance-Helfer.
|
|
|
|
|
|
|
2026-05-05 21:51:53 +02:00
|
|
|
|
Letzte Änderung: 2026-05-05 — u. a. Übungen komplett TenantContext; Stufe B/C partiell (Bibliothekslisten + Planung); `GET /training-units` ohne automatischen club_id-Filter (Kompatibilität).
|
2026-05-05 21:46:41 +02:00
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
### Hinweis `GET /training-units`
|
|
|
|
|
|
|
|
|
|
|
|
Kein impliziter Filter nach `effective_club_id` (Multi-Verein-Kalender); bei Bedarf `club_id` Query setzen.
|