feat(api-client): generated BFF client library (closes #66) #70
Reference in New Issue
Block a user
Delete Branch "feat/66-api-client"
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?
What & why
S-08b —
libs/api-client, a generated typed client for the BFF (§10: generated, neverhand-written). Generated from
services/bff/openapi.jsonwith orval (Angular target → aninjectable
BffApiV1ServiceonHttpClient), so the DigiD bearer can later be attached by anHttpInterceptor(S-08c). Consumed by the self-service form next.Closes #66
Definition of Done
refs #66).frontendlane covers it (lint + test); generation is a repeatablenxtarget.docs/frontend-decisions.mdentry (generator choice + regen command).Notes for reviewers
HttpClientservice (interceptor-friendly). Config:libs/api-client/orval.config.ts. Regeneratewith
nx run api-client:generate(idempotent;src/lib/generated/is never hand-edited).HttpClientTesting:POST /self-service/registrationsandGET /openbaar/register?q=…, mapping typedSubmitAccepted/OpenbaarEntry.test(wasvite:test) so app + libs share the target andmake frontend'srun-many -t testcovers libraries too.operationId, so orval synthesises method names — adding explicitoperation ids to the BFF is possible later polish (noted in frontend-decisions).
🤖 Generated with Claude Code