| Function name |
queryCptById(Long cptId) |
| Description |
Query the contents of a specific credential template by its ID. |
| Request Parameters |
| No. |
Parameter |
Type |
Required |
Description |
| 1 |
cptId |
Long |
Y |
Credential template ID |
| Response Parameters |
| No. |
Parameter |
Type |
Required |
Description |
| 1 |
|
CptInfo |
Y |
Query result, credential template information |
| CptInfo |
| No. |
Parameter |
Type |
Required |
Description |
| 1 |
cptJsonSchema |
Map<String, JsonSchema> |
Y |
JsonSchema for Credential template |
| 2 |
title |
String |
Y |
Title |
| 3 |
description |
String |
Y |
Description |
| 4 |
publisherDid |
String |
Y |
DID to create credential template |
| 5 |
proof |
Proof |
Y |
Signature |
| 6 |
create |
String |
Y |
Created date |
| 7 |
update |
String |
Y |
Updated date |
| 8 |
cptId |
Long |
Y |
Credential template ID |
| 9 |
cptVersion |
Integer |
Y |
Credential template version |
| JsonSchema |
| 1 |
type |
String |
Y |
Type |
| 2 |
description |
String |
Y |
Description |
| 3 |
required |
Boolean |
Y |
true: required; false: optional |
| Proof |
| No. |
Parameter |
Type |
Required |
Description |
| 1 |
type |
String |
Y |
Algorithm type |
| 2 |
creator |
String |
Y |
DID |
| 3 |
signatureValue |
String |
Y |
Signature value |