OpenAPI Client Library
npm install openapi-clientlib
yarn add openapi-clientlib
Building the library
- Clone the repo
git clone https://github.com/saxobank/openapi-clientlib-js
- Install Node Modules
- Run tasks
npm run buildbuild distribution
npm run checkcheck lint/prettier errors and run unit tests
npm version patch | minor | major -m "Upgrade to %s for reasons" npm publish
Consuming the library
The source code of the library is not compiled to any specific ES version. You need to include this library in your build setup and, depending on your app requirements, compile it to any ES version you want.
The library requires below dependencies to be provided in environment where it will be used.
|Dependency||Version||Details & URL|
|SignalR||2.0.3||Signal-R can be downloaded from https://github.com/SignalR/SignalR/releases/tag/2.0.3.|
|jQuery||>1.11||We do not depend on jQuery, but SignalR does. You can use any version of jquery that SignalR supports.|
|TextDecoder||TextDecoder is used to decode utf8 JSON string payload for plain websocket transport.|
|It will fallback to SignalR if TextDecoder is not available in the environment|
|protobufjs||6.10.2||Required only if you will use protobuf parser|
|@types/signalr||2.2.36||TypeScript projects only - provides types definition for the lib|
|@microsoft/signalr||5.0.4||TypeScript projects only - provides types definition for the lib|
Please check doc comments in the source code for additional information.
You want to contribute? Great! Have a look at our contribution guidelines.