Get subjects
Get subjects
Allows to obtain, with pagination, the list of subjects known by the node. It can also be used to obtain exclusively the governances and all the subjects belonging to a specific one.
Query Parameters
- subject_type string
Type of subjects requested (possibilities: all, governances)
- governanceid string
Governance id of subjects requested
- from string
Identifier of the initial subject to be considered in pagination
- quantity integer
Quantity of subjects requested
- 200
- 400
- 404
- 500
Subjects Data successfully retrieved
- application/json
- Schema
- Example (from schema)
- Example
Schema array
- active boolean
Indicates if the subject is active or not
- creator string
Subject creator identifier
- governance_id string
Governance identifier
- name string
The name of the subject.
- namespace string
Namespace of the subject
- owner string
Subject owner identifier
- properties
Current status of the subject
- public_key string
Public key of the subject
- schema_id string
Identifier of the schema used by the subject and defined in associated governance
- sn int64
Current sequence number of the subject
- subject_id string
Subject identifier
[
{
"active": true,
"creator": "string",
"governance_id": "string",
"name": "string",
"namespace": "string",
"owner": "string",
"public_key": "string",
"schema_id": "string",
"sn": 0,
"subject_id": "string"
}
]
[
{
"active": true,
"creator": "EbwR0yYrCYpTzlN5i5GX_MtAbKRw5y2euv3TqiTgwggs",
"governance_id": "",
"name": "Wine_Producers_Organization",
"namespace": "",
"owner": "EbwR0yYrCYpTzlN5i5GX_MtAbKRw5y2euv3TqiTgwggs",
"properties": {
"members": [],
"policies": [
{
"approve": {
"quorum": "MAJORITY"
},
"evaluate": {
"quorum": "MAJORITY"
},
"id": "governance",
"validate": {
"quorum": "MAJORITY"
}
}
],
"roles": [],
"schemas": []
},
"public_key": "E0gaiDcPRVmYLUGbseHmBk2_2H-FAlSgaO6ZMOXhh4Gs",
"schema_id": "governance",
"sn": 0,
"subject_id": "JoifaSpfenD2bEPeBLvUTWh30brm4tKcvdW8exQnkGoQ"
}
]
Bad Request
Not Found
Internal Server Error