Get all the pending requests for Approval
Responses
- 200
- 400
- 401
- 404
- 500
All pending requests
- application/json
- Schema
- Example (from schema)
- Example
Schema array
approvals object[]
content object
approval_type stringPossible values: [
Accept
,Reject
]event_request_hash stringexpected_sn int64signer stringtimestamp int64signature stringrequest object
oneOf- MOD1
- MOD2
Create object
governance_id stringnamespace stringpayload object
oneOf- MOD1
- MOD2
Json stringJsonPatch stringschema_id stringState object
payload object
oneOf- MOD1
- MOD2
Json stringJsonPatch stringsubject_id stringsignature object
The format, in addition to the signature, includes additional information, namely the signer's identifier, the signature timestamp and the hash of the signed contents.
content object
Defines the data used to generate the signature, as well as the signer's identifier.
event_content_hash stringsigner stringtimestamp int64signature string- timestamp int64
[
{
"approvals": [
{
"content": {
"approval_type": "Accept",
"event_request_hash": "string",
"expected_sn": 0,
"signer": "string",
"timestamp": 0
},
"signature": "string"
}
],
"request": {
"Create": {
"governance_id": "string",
"namespace": "string",
"payload": {
"Json": "string"
},
"schema_id": "string"
}
},
"signature": {
"content": {
"event_content_hash": "string",
"signer": "string",
"timestamp": 0
},
"signature": "string"
},
"timestamp": 0
}
]
[
{
"approvals": [],
"request": {
"State": {
"payload": {
"Json": "{\"members\":[{\"description\":\"Sede en España\",\"id\":\"Compañía1\",\"key\":\"EFXv0jBIr6BtoqFMR7G_JBSuozRc2jZnu5VGUH2gy6-w\",\"tags\":{}}],\"schemas\":[{\"content\":{\"additionalProperties\":false,\"properties\":{\"localizacion\":{\"type\":\"string\"},\"temperatura\":{\"type\":\"integer\"}},\"required\":[\"temperatura\",\"localizacion\"],\"type\":\"object\"},\"id\":\"Prueba\",\"tags\":{}}]}"
},
"subject_id": "J7BgD3dqZ8vO4WEH7-rpWIH-IhMqaSDnuJ3Jb8K6KvL0"
}
},
"signature": {
"content": {
"event_content_hash": "JhEnzFVF1a-u-rH34cix2A_OXgcfesM6HGOyk7wdrGHk",
"signer": "EFXv0jBIr6BtoqFMR7G_JBSuozRc2jZnu5VGUH2gy6-w",
"timestamp": 1671709394
},
"signature": "SEnUJq3Y1lbmijKzrc0kuLu-FgMTCyo5PWfDrbi_80bspghCny8Yuvifsmdqq0TjfTUS7sEwmOLir1W_1zeIVyDQ"
},
"timestamp": 1671709394
}
]
Bad Request
Unauthorized
Not Found
Internal Server Error
Loading...