Credential Templates
Verifiable Credential templates/types setup
CLI
You can import a DID document using:
config --as-issuer default vc templates import --name TestCredential credential-template.json
The value "default" of --as-issuer
refers to the tenantId.
By specifying vc templates --help
you can also view other VC template commands (besides import you can list, export and remove)
REST API
List templates you have
GET /issuer-api/{tenantId}/config/templates
curl -X 'GET' \
'http://localhost:8080/issuer-api/default/config/templates' \
-H 'accept: application/json'
Show a VC template
GET /issuer-api/{tenantId}/config/templates/{templateId}
curl -X 'GET' \
'http://localhost:8080/issuer-api/default/config/templates/VerifiableId' \
-H 'accept: application/json'
Add a new VC template
POST /issuer-api/{tenantId}/config/templates/{templateId}
curl -X 'POST' \
'http://0.0.0.0:8080/issuer-api/default/config/templates/CrudeProductCredential' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d 'SEE EXAMPLE BODY'
Remove the VC template
/issuer-api/{tenantId}/config/templates/{templateId}
curl -X 'DELETE' \
'https://wallet.walt-test.cloud/issuer-api/default/config/templates/CrudeProductCredential' \
-H 'accept: text/plain'
Last updated
Was this helpful?