https://github.com/crazyfactory/tinka-generator-openapi
This repo takes a spec file and generate ts-http-client sdk
https://github.com/crazyfactory/tinka-generator-openapi
Last synced: about 1 year ago
JSON representation
This repo takes a spec file and generate ts-http-client sdk
- Host: GitHub
- URL: https://github.com/crazyfactory/tinka-generator-openapi
- Owner: crazyfactory
- Created: 2017-05-18T04:28:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-01T22:01:43.000Z (over 3 years ago)
- Last Synced: 2025-04-03T15:52:45.049Z (about 1 year ago)
- Language: TypeScript
- Size: 1.53 MB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tinka-generator-openapi
[](https://greenkeeper.io/)
This repo takes a spec file and generate ts-http-client sdk
In crazy factory, we have
1) api -> the actual API that connects to database
2) api-client -> an sdk that provides meaningful classes and methods that call api using ts-http-client
3) shop, erp, logistics, handbag -> use api-client
4) ts-http-client -> technology for stack and talking, but no api specs
5) tinka-generator-openapi -> takes a spec file and generates stuff
Here's the process
1) each api has its own spec.json file
2) once spec.json in api is updated, spec.json in api-client is automatically updated according to the former one, with meaningful tag.
3) then api-client will use the functionality of tinka-generator-openapi to generate a new sdk according to the updated spec
4) api-client automatically published to NPM (via semantic-release?)