f976b9087198e085ccd9c274955250cf9592112e
Returns aggregated pet profile with: - All pet fields (basic + extended) - recentGroomingHistory: last 10 entries from groomingVisitLogs with staff name join - lastVisitDate: most recent groomedAt timestamp - visitCount: count of completed appointments - upcomingAppointment: next scheduled/confirmed appointment with service/staff name Enforces same groomer RBAC as GET /:id. Returns 404 for non-existent pets. Adds PetProfileSummary, GroomingHistoryEntry, and UpcomingAppointment types. Adds unit tests covering: 404, 403, aggregated profile, empty history, no upcoming appt. Updates UAT_PLAYBOOK.md §3 with TC-API-3.8 and TC-API-3.9. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
GroomBook API
GroomBook API service — extracted from the groombook/app monorepo.
Overview
This repository contains the GroomBook API service, including:
- REST API endpoints
- Database schema and migrations (via Drizzle ORM)
- Authentication (via Better Auth)
- Background job handlers
Structure
src/ # API service source
packages/db/ # Database schema, migrations, and utilities
packages/types/ # Shared TypeScript types
Setup
pnpm install
cp .env.example .env # Fill in required environment variables
pnpm --filter @groombook/api dev
Docker
docker build -t ghcr.io/groombook/api:latest .
docker run -p 3000:3000 ghcr.io/groombook/api:latest
License
AGPL-3.0-only
Description
Languages
TypeScript
99.3%
JavaScript
0.4%
Dockerfile
0.2%