Skip to content

FraunhoferIEE/dsc-lib

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published