Sample Data

Payload Explanation

The payload in the CURL command is a JSON object containing two main sections:

  1. Credential: This section includes the Verifiable Credential (VC) data. It contains various fields such as @context, type, issuer, issuanceDate, and credentialSubject. The credentialSubject holds the actual data about the individual, such as birthyear, disability_type, etc., which are now replaced with placeholders.

  2. Config: This section specifies the configuration for the verification method and the issuer. The method is set to "online", and the issuerName 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