edc-lib
edc-lib is a javascript library to control / interact with Eclipse DataSpace Connector.
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 edc-lib
Usage
let connectorController: EDCConnector;
const connectorController = new new EDCConnector(
`https://localhost:8080/control`,
`https://localhost:8080/api/v1/data`,
username,
password
)();
await connectorController.messagingService.sendIdsDescription(
'https://anotherConnectorsHostname:8080/api/ids/data'
);
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.