Definition

This API suite focuses on defining the types of verifiable credentials. This is mostly optional.

Retrieve all credential definitions registered by a user

GET /api/v1/definition

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

apikey = {Alice's key}

Body

Response

{
    "data": []
}

Retrieve a specific definitions by uid

GET /api/v1/definition/{uid}

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

apikey = {Alice's key}

Body

Response

{
    "data": []
}

Create a new definition

POST /api/v1/definition

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

apikey = {Alice's key}

Body

Name
Type
Description

name

string

Name for this definition (compulsory)

description

string

Description for this definition (compulsory)

version

string

Version for this definition (optional)

author

string

Published short DID of author for this definition (compulsory)

tags

string

optional

location

string (url)

Location of the schema definition (httph://...)

Response

{
// todo....
}

Last updated