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.
npm i dsc-lib
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
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.
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.