@crazyfactory/tinka-generator-openapi
v1.1.0
Published
This repo takes a spec file and generate ts-http-client sdk
Downloads
43
Maintainers
Keywords
Readme
tinka-generator-openapi
This repo takes a spec file and generate ts-http-client sdk
In crazy factory, we have
- api -> the actual API that connects to database
- api-client -> an sdk that provides meaningful classes and methods that call api using ts-http-client
- shop, erp, logistics, handbag -> use api-client
- ts-http-client -> technology for stack and talking, but no api specs
- tinka-generator-openapi -> takes a spec file and generates stuff
Here's the process
- each api has its own spec.json file
- once spec.json in api is updated, spec.json in api-client is automatically updated according to the former one, with meaningful tag.
- then api-client will use the functionality of tinka-generator-openapi to generate a new sdk according to the updated spec
- api-client automatically published to NPM (via semantic-release?)