@sovity.de/edc-client
v16.3.0
Published
TypeScript API Client for our EDC API Wrapper.
Readme
About this component
TypeScript Client Library to be imported and used in arbitrary applications like frontends or NodeJS projects.
You can find our API definitions here.
How to install
Requires global fetch API (provided by Node.js 18+ or browser).
npm i --save @sovity.de/edc-clientHow to use
Configure your EDC Client and use endpoints of our API Wrapper Extension:
Example Using API Key Auth
const edcClient: EdcClient = buildEdcClient({
managementApiUrl: 'http://localhost:11002/api/management/v2',
managementApiKey: 'ApiKeyDefaultValue',
});
let kpiData: KpiResult = await edcClient.useCaseApi.getKpis();Example Using OAuth2 Client Credentials
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();License
Apache License 2.0 - see LICENSE
Contact
sovity GmbH - [email protected]
