feat(backend): include=emailaddress fuer Personen-API #256
No reviewers
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!256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/include-emailaddress"
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?
Allgemein
Altes Verhalten
GET /api/v1/persons und GET /api/v1/persons/:id unterstuetzen nur include=group. E-Mail-Adressen sind nur ueber /me und /contacts erreichbar.
Neues Verhalten
include-Query akzeptiert zusaetzlich emailaddress (komma-separierbar mit group). Mit edit-person-Rolle wird die E-Mail entschluesselt ausgeliefert, sonst '***'. Fehlende contactData ergeben null.
Begruendung
Vorbereitung fuer spaeteren Frontend-Change, der E-Mail-Adressen in der Personenliste anzeigen soll.
Test-Hinweise
Unit-Tests: 5 neue Testcases (Liste + Detail: mit/ohne edit-person, ohne contactData, kombiniert group+email, 400 bei unbekannt). Integration-Tests via npm run test:integration:parallel erfolgreich durchgelaufen.
Checkliste