Sparse Fieldsets (?fields=) fuer alle API-Endpunkte implementieren #257
Labels
No labels
component/backend
component/docs
component/e2e
component/frontend
component/infra
component/keycloak
prio/high
prio/low
prio/medium
type/bug
type/chore
type/feature
type/refactor
type/test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WompSchmiede/FamilienFeierPlaner#257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beschreibung
Das API-Design (03-api-design.md) sieht Sparse Fieldsets vor:
GET /api/v1/events/{eventId}?fields=title,eventDateDieses Pattern wurde nie im Backend implementiert — kein Endpunkt unterstuetzt
?fields=. Alle Endpunkte liefern immer das vollstaendige Schema aus.Betroffene Endpunkte
/api/v1/persons/api/v1/persons/{id}/api/v1/groups/api/v1/groups/{id}/api/v1/events/api/v1/events/{id}Umsetzungsvorschlag
?fields=title,eventDateparsed alsSet<string>(analog zuparsePersonInclude)selectstattincludewenn?fields=gesetzt istpersonId,eventId, ...) wird automatisch ergaenztPrioritaet
Niedrig — rein opt. Optimierung fuer Bandbreite/Performance. Die API funktioniert auch ohne.