TypeScript Client Library to be imported and used in arbitrary applications like frontends or NodeJS projects.
You can find our API Wrapper Project here.
Requires global fetch API (provided by Node.js 18+ or browser).
npm i --save @sovity.de/edc-client
Configure your EDC Client and use endpoints of our API Wrapper Extension:
const edcClient: EdcClient = buildEdcClient({
managementApiUrl: 'http://localhost:11002/api/management/v2',
managementApiKey: 'ApiKeyDefaultValue',
});
let kpiData: KpiResult = await edcClient.useCaseApi.getKpis();
A minimal example project using the typescript API client can be found here.
const edcClient: EdcClient = buildEdcClient({
managementApiUrl: 'http://localhost:11002/api/management/v2',
clientCredentials: {
tokenUrl: 'http://localhost:11002/token',
clientId: '{{your-connector}}-app',
clientSecret: '...',
},
});
let kpiData: KpiResult = await edcClient.useCaseApi.getKpis();
Apache License 2.0 - see LICENSE
sovity GmbH - contact@sovity.de