datacopro-client
v1.0.31
Published
Lib for Datacopro extracted from Swagger
Maintainers
Readme
Datacopro client js
A small TS/JS client for DatacoproAPI.
⚠️ This project is under development. As a result, only a small part of the DatacoproAPI is implemented by our team. We will set it public in the near future.
To develop
- Install
NodeJS(it automatically install the node package managernpm). - Git clone this lib in your project.
- Install dependencies using
npm i. - Add to your package.json the module with
file:datacopro-client-js - Update the client from the swagger with this command :
openapi-generator-cli generate -g typescript-axios -i https://preprod-syndic.datacopro.org/v2/swagger.yml
How to publish new version on npm public registry
Follow these steps:
- bump version in package.json
npm run build: run typescript compiler to compile your TS sources files inside/distrepository.git add .: to add every new files (even thedistfolder)git commit -m 'My new feature OMG!': commit your changesgit push origin master: push your changes to the gitlab private repository.
After that. Don't forget to run npm update datacopro-client on your project.
TODO
- Change BASE_PATH in base.ts to env var or config file
