Skip to main content

Service

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

Services are units of business logic that perform specific operations or interactions with external systems. They handle data processing, API calls, and other backend functionalities.

Diagram

Config

PropertyRequiredDescriptionType
nameYesThe name of the service (depends on service used)Service
parametersYesAn array of parameter objects for the services (depends on service used)Service

Example

{
"services": [
{
"name": "processDPP",
"parameters": [
{
"vckit": {
"vckitAPIUrl": "http://localhost:3332/v2",
"issuer": "did:web:uncefact.github.io:project-vckit:test-and-development",
"headers": {
"Authorization": "Bearer test123"
}
},
"dpp": {
"context": ["https://dpp-json-ld.s3.ap-southeast-2.amazonaws.com/dppld.json"],
"renderTemplate": [],
"type": ["VerifiableCredential", " DigitalProductPassport"],
"dlrLinkTitle": "Steel Passport",
"dlrIdentificationKeyType": "gtin",
"dlrVerificationPage": "http://localhost:3000/verify"
},
"dlr": {
"dlrAPIUrl": "http://localhost:8080",
"dlrAPIKey": "5555555555555"
},
"storage": {
"url": "http://localhost:3334/v1/documents",
"params": {
"resultPath": "/uri",
"bucket": "verifiable-credentials"
},
"options": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
}
}
},
"identifierKeyPath": "/product/itemIdentifiers/0/identifierValue"
}
]
},
{
"name": "mergeToLocalStorage",
"parameters": [
{
"storageKey": "Steel_Mill_1_dpps",
"objectKeyPath": "/vc/credentialSubject/product/itemIdentifiers/0/identifierValue"
}
]
}
]
}