This project uses OpenAPI Generator to automatically generate the API client services and models based on the Apache Fineract Swagger specification.
The generator is configured in package.json and uses custom templates located in templates/openapi-generator/.
src/app/api/public/api/fineract.json (copied to api-spec/fineract.json during generation)templates/openapi-generator/licenseInfo.mustache (adds Apache License header to all files)To (re)generate the API client, run:
npm run generate-api
This command will:
public/api/fineract.json.typescript-angular generator.If the Fineract API changes, update the public/api/fineract.json file and then run npm run generate-api.
If you need to customize the generated code further (e.g., adding common interceptors or changing the way models are generated), you can add more .mustache files to the templates/openapi-generator/ directory.
To prevent the generator from overwriting or creating certain files, add them to the .openapi-generator-ignore file in the root of the project. Currently ignored:
git_push.shREADME.md (inside src/app/api/).gitignore (inside src/app/api/)