@reposit/api-client
v0.0.0-paymentss-admin-0
Published
Reposit API client generated from back-end swagger definition
Keywords
Readme
Reposit API Client
A generated api-client for use in front-end projects. The client is generated using the open-api generator project and the open-api (swagger) JSON definition generated from our back-end api project.
Setup
npm i
A Java runtime must be installed for the script to run successfully. This can be downloaded here.
Generating the api-client
NOTE: The generator will look for a swagger.json in the tenancy folder one level up. Make sure you have updated the generated swagger definition in the backend project (npm run generate-swagger-json).
With schema validation:
npm run generate-client
Without schema validation (for emergencies):
npm run generate-client:force
Build
npm run build
Publish
npm run release
This will also build the project.
Changing the generated output
IMPORTANT - do not manually edit any files in the src folder. The generator uses the mustache templates in the templates folder to generate the client; edit these if you need to change the generated code.
