Interface Address |
/did/registerCpt |
Description |
The issuer customizes the credential template and can agree on which attribute values must be provided by the applicant. For example, in the template of college diploma, you can agree that "name" and "student number" are mandatory information. |
Interface request parameter |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
RegisterCptWrapper |
Y |
Wrapper class |
RegisterCptWrapper |
1 |
did |
String |
Y |
DID |
2 |
cptJsonSchema |
Map<String, JsonSchema> |
Y |
JsonSchema information for MapType |
3 |
title |
String |
Y |
Credential template title |
4 |
description |
String |
Y |
Credential template description |
5 |
type |
String |
Y |
Credential type, fill in proof |
6 |
proof |
Proof |
Y |
Signature |
7 |
create |
String |
Y |
Created date |
8 |
update |
String |
Y |
Updated date |
Proof |
1 |
creator |
String |
Y |
DID involved in the calculation of the Signature value |
2 |
type |
String |
Y |
Algorithm type |
3 |
signatureValue |
String |
Y |
Signature value |
JsonSchema |
1 |
type |
String |
Y |
Field type |
2 |
description |
String |
Y |
Field description |
3 |
required |
Boolean |
Y |
Whether is required to fill |
Interface response parameter |
No. |
Parameter |
Type |
Description |
1 |
|
CptBaseInfo |
Credential template information |
CptBaseInfo |
1 |
cptId |
Long |
Credential template ID |
2 |
cptVersion |
Integer |
Version |