Sample Data
Payload Explanation
The payload in the CURL command is a JSON object containing two main sections:
Credential: This section includes the Verifiable Credential (VC) data. It contains various fields such as
@context
,type
,issuer
,issuanceDate
, andcredentialSubject
. ThecredentialSubject
holds the actual data about the individual, such asbirthyear
,disability_type
, etc., which are now replaced with placeholders.Config: This section specifies the configuration for the verification method and the issuer. The
method
is set to "online", and theissuerName
is "dhiway", indicating that the verification is done online by the issuer named Dhiway.
Sample CURL Command
Below is a sample CURL command for the verification API:
curl --location 'http://localhost:3010/verification' \
--header 'Content-Type: application/json' \
--data '{
"credential": { VC Data},
"config": {
"method": "online",
"issuerName": "dhiway"
}
}'
Last updated