Get events of a subject
Get events of a subject
Allows to obtain, with pagination, the list of events of a subject.
Path Parameters
- id string required
Subject's unique id
Query Parameters
- from integer
SN from which the event list should begin
- quantity integer
Quantity of events requested
- 200
- 400
- 404
- 500
Subjects Data successfully retrieved
- application/json
- Schema
- Example (from schema)
- Example
Schema array
EventContentResponse object
appr_required booleanValue specifying if approval is required
approved booleanValue specifying if it has been approved
approvers object[]
Signatures of the approvers
signer stringSignature of the issuer
timestamp int64Timestamp at which the signature was made
value stringSignature value
eval_success booleanValue specifying if the evaluation process has gone well
evaluators object[]
Signatures of the evaluators
signer stringSignature of the issuer
timestamp int64Timestamp at which the signature was made
value stringSignature value
event_request object
EventRequestBody object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
Create object
governance_id stringGovernance identifier
name stringName of subject
namespace stringNamespace to which the subject belongs
public_key stringPublic key of the subject
schema_id stringSubject schema json identifier
Fact object
payloadChanges to be applied to the subject
subject_id stringSubject identifier
Transfer object
public_key stringPublic key of the new owner
subject_id stringSubject identifier
EOL object
subject_id stringSubject identifier
SignatureBody object
signer stringSignature of the issuer
timestamp int64Timestamp at which the signature was made
value stringSignature value
gov_version int64The version of the governance contract.
hash_prev_event stringPrevious event hash
patchChanges to be applied to the subject
sn int64Current sequence number of the subject
state_hash stringHash of the state
subject_id stringSubject identifier
SignatureBody object
signer stringSignature of the issuer
timestamp int64Timestamp at which the signature was made
value stringSignature value
[
{
"EventContentResponse": {
"appr_required": true,
"approved": true,
"approvers": [
{
"signer": "string",
"timestamp": 0,
"value": "string"
}
],
"eval_success": true,
"evaluators": [
{
"signer": "string",
"timestamp": 0,
"value": "string"
}
],
"event_request": {
"EventRequestBody": {
"Create": {
"governance_id": "string",
"name": "string",
"namespace": "string",
"public_key": "string",
"schema_id": "string"
}
},
"SignatureBody": {
"signer": "string",
"timestamp": 0,
"value": "string"
}
},
"gov_version": 0,
"hash_prev_event": "string",
"sn": 0,
"state_hash": "string",
"subject_id": "string"
},
"SignatureBody": {
"signer": "string",
"timestamp": 0,
"value": "string"
}
}
]
[
{
"appr_required": false,
"approved": true,
"approvers": [],
"eval_success": true,
"evaluators": [],
"event_request": {
"Create": {
"governance_id": "",
"name": "Wine_Producers_Organization",
"namespace": "",
"public_key": "E0gaiDcPRVmYLUGbseHmBk2_2H-FAlSgaO6ZMOXhh4Gs",
"schema_id": "governance"
},
"signature": {
"signer": "EbwR0yYrCYpTzlN5i5GX_MtAbKRw5y2euv3TqiTgwggs",
"timestamp": 1688643031,
"value": "SE-tHjb3eWcMvVIYuSBPn0EW4Q5mQs2uswS5HLl0GB0iYVEc5jcOWD78ZHRL8VlO0mtxv9KWt2EI9R9Id2Z5o8CA"
}
},
"hash_prev_event": "",
"patch": [
{
"op": "add",
"path": "/members",
"value": []
},
{
"op": "add",
"path": "/policies",
"value": [
{
"approve": {
"quorum": "MAJORITY"
},
"evaluate": {
"quorum": "MAJORITY"
},
"id": "governance",
"validate": {
"quorum": "MAJORITY"
}
}
]
},
{
"op": "add",
"path": "/roles",
"value": []
},
{
"op": "add",
"path": "/schemas",
"value": []
}
],
"signature": {
"signer": "E0gaiDcPRVmYLUGbseHmBk2_2H-FAlSgaO6ZMOXhh4Gs",
"timestamp": 168864303,
"value": "SEnTz4Nw-rX6y00yNF01o__AwyWxyG1s669AetXCfrnxCTSyf67xv8AsnccTOe4fFm-2ZIeRjubdf5FTQHZAd7BQ"
},
"sn": 0,
"state_hash": "JVKr8BAEs1DhpNjMZf4525IYps2Gu6m7ZBmuaNBoM_Qk",
"subject_id": "JoifaSpfenD2bEPeBLvUTWh30brm4tKcvdW8exQnkGoQ"
}
]
Bad Request
Not Found
Internal Server Error