The frontend uses generated TypeScript Angular clients for backend APIs.
Generate the Shiftservice client with:
npm run generate-shiftservice-clientThis writes the generated client to:
src/shiftservice-client
The generated client is development output and is already gitignored, so it should not be committed.
The script expects the Shiftservice OpenAPI endpoint to be reachable at:
http://shiftservice.127.0.0.1.nip.io/v3/api-docs
In local development that usually means:
- start
shiftservice - verify that
/v3/api-docsis reachable - run
npm run generate-shiftservice-client
If you want to use the repository's Docker-based generation flow instead, run:
npm run generate-shiftservice-client-ciThe frontend also contains scripts for other backend clients:
npm run generate-auditservice-client
npm run generate-notificationservice-client