GET /api/v1/persons/{person_id}/consent + GET /api/v1/groups/{group_id}/consents #140

Closed
opened 2026-06-28 22:38:00 +00:00 by niboer · 0 comments
Owner
  • Gibt aktuellste DSGVO-Einwilligung einer Person zurueck (oder 204)
  • Auth: requireOwnDataOrGroupMember
  • Liefert: { personId, policyVersion, acceptedBy, acceptedAt }

GET /api/v1/groups/{group_id}/consents

  • Gibt Consent-Status aller Gruppenmitglieder in einem Query
  • Auth: requireGroupMember
  • Liefert: { personId, policyVersion, acceptedBy, acceptedAt }[]

Umsetzung

  • OpenAPI-Schemas: PersonConsentResponse, GroupConsentsResponse
  • Tests: 8 neue Tests in consent.test.ts (15 total, alle gruen)

Milestone: MS-BE-API-5 (i18n & Consent)
Label: component/backend, type/feature, prio/medium

## Neu: Zwei Consent-Endpunkte ### GET /api/v1/persons/{person_id}/consent - Gibt aktuellste DSGVO-Einwilligung einer Person zurueck (oder 204) - Auth: `requireOwnDataOrGroupMember` - Liefert: `{ personId, policyVersion, acceptedBy, acceptedAt }` ### GET /api/v1/groups/{group_id}/consents - Gibt Consent-Status aller Gruppenmitglieder in einem Query - Auth: `requireGroupMember` - Liefert: `{ personId, policyVersion, acceptedBy, acceptedAt }[]` ### Umsetzung - OpenAPI-Schemas: `PersonConsentResponse`, `GroupConsentsResponse` - Tests: 8 neue Tests in `consent.test.ts` (15 total, alle gruen) **Milestone:** MS-BE-API-5 (i18n & Consent) **Label:** component/backend, type/feature, prio/medium
Sign in to join this conversation.
No description provided.