nedap-node-client
v1.0.0
Published
nedap idcloud api node client
Downloads
4
Readme
Nedap API Typescript-Fetch Client
This package/module is auto generated using Nedap openapi document and openapi-generator. It provides models for request and response, util function to transform json to object, and node-fetch client for all Nedap API endpoints. This module was published to https://www.npmjs.com/package/nedap-api-client.
Usage of the module
- Run following command
npm install --save nedap-api-client
Generate/Update the module
- Make sure jdk 8 or later is installed
- Download binary for
openapi-generator-cli
at https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/ - Run following command (in a bash shell), remember to replace with your correct paths for openapi-generator-cli jar file, input openapi document (after -i arg), and output folder (after -o arg)
java -jar ~/Downloads/openapi-generator-cli-5.1.0.jar generate \
-i ~/Downloads/idcloud-openapi.json \
-g typescript-node \
-o ~/repo/nedap-api-client \
--additional-properties supportsES6=true \
--additional-properties typescriptThreePlus=true
- Test the generated module by running following
tsc ./api/apis.ts --lib ES2015 --target ES2015 --esModuleInterop --moduleResolution node
- At root folder of the generated module, add/edit package.json, make sure you have signed in your npm account, run following command
npm publish