feat: add Family entity, mapper, service, and controller (Closes #28) #75

Merged
shahondin1624 merged 1 commits from feature/issue-28-family-entity-mapper-service-controller into main 2026-04-07 12:01:15 +02:00
Owner

Summary

  • Creates Family entity and FamilyMapper with search, pagination, and count
  • Creates FamilyService with CRUD, member link/unlink, active children count calculation
  • Creates FamilyController REST API: list, show (with linked members), create, update, delete, link/unlink member
  • Registers 7 new routes in routes.php
  • Delete unlinks all members before removing the family record

API Endpoints

  • GET/POST /api/v1/families, GET/PUT/DELETE /api/v1/families/{id}
  • POST/DELETE /api/v1/families/{id}/members/{memberId} (link/unlink)

Closes #28

## Summary - Creates `Family` entity and `FamilyMapper` with search, pagination, and count - Creates `FamilyService` with CRUD, member link/unlink, active children count calculation - Creates `FamilyController` REST API: list, show (with linked members), create, update, delete, link/unlink member - Registers 7 new routes in `routes.php` - Delete unlinks all members before removing the family record ## API Endpoints - `GET/POST /api/v1/families`, `GET/PUT/DELETE /api/v1/families/{id}` - `POST/DELETE /api/v1/families/{id}/members/{memberId}` (link/unlink) Closes #28
shahondin1624 added 1 commit 2026-04-07 12:01:11 +02:00
Full CRUD stack for families with encrypted banking fields:
- Family entity and FamilyMapper with findById, findAll, findByName
- FamilyService with CRUD, member link/unlink, active children count
- FamilyController REST API with 7 endpoints
- Routes registered for family CRUD and member linking

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
shahondin1624 merged commit ba7277cead into main 2026-04-07 12:01:15 +02:00
shahondin1624 deleted branch feature/issue-28-family-entity-mapper-service-controller 2026-04-07 12:01:16 +02:00
Sign in to join this conversation.