dsc-lib

0.1.1 • Public • Published

dsc-lib

dsc-lib is a javascript library to control / interact with DSC-DataSpace-Connectors.

The library is implemented in TypeScript, but can be either used by Javascript or TypeScript. The client is implemented for server-side use with Node and uses node-fetch as the request library.

Installation

npm i dsc-lib

Usage

import {DSCConnector} from 'dsc-lib';

let connectorController: DSCConnector;

const connectorController = new DSCConnector(
  'https://connectorurl:port',
  'username',
  'password'
);

await connectorController.messagingService.sendIdsDescription(
  'https://anotherConnectorsHostname:8080/api/ids/data'
);
See ./test/connector for more examples

Credits

The typescript models and services in this library have been initially generated from the official OpenAPI Spec with the help of openapi-typescript-codegen and then have been further modified.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache 2.0

Package Sidebar

Install

npm i dsc-lib

Weekly Downloads

0

Version

0.1.1

License

Apache-2.0

Unpacked Size

401 kB

Total Files

339

Last publish

Collaborators

  • otmi100