Retrieve all data from documents that needed for displaying the formula

post
Authorizations
Body
policyIdstringOptionalExample: 000000000000000000000001
schemaIdstringOptionalExample: 000000000000000000000001
documentIdstringOptionalExample: 000000000000000000000001
parentIdstringOptionalExample: 000000000000000000000001
Responses
200
Successful operation.
application/json
post
POST /api/v1/formulas/data HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 155

{
  "policyId": "000000000000000000000001",
  "schemaId": "000000000000000000000001",
  "documentId": "000000000000000000000001",
  "parentId": "000000000000000000000001"
}
{
  "formulas": [
    {
      "id": "000000000000000000000001",
      "uuid": "00000000-0000-0000-0000-000000000000",
      "name": "Tool name",
      "description": "Description",
      "creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
      "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
      "messageId": "0000000000.000000001",
      "policyId": "000000000000000000000001",
      "policyTopicId": "0.0.1",
      "policyInstanceTopicId": "0.0.1",
      "status": "DRAFT",
      "config": {}
    }
  ],
  "document": {
    "id": "000000000000000000000001",
    "policyId": "000000000000000000000001",
    "hash": "hash",
    "signature": 0,
    "status": "NEW",
    "tag": "Block tag",
    "type": "Document type",
    "createDate": "1900-01-01T00:00:00.000Z",
    "updateDate": "1900-01-01T00:00:00.000Z",
    "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
    "document": {
      "@context": [
        "text"
      ],
      "id": "00000000-0000-0000-0000-000000000000",
      "type": [
        "text"
      ],
      "verifiableCredential": [
        {}
      ],
      "proof": {}
    }
  },
  "relationships": [
    {
      "id": "000000000000000000000001",
      "policyId": "000000000000000000000001",
      "hash": "hash",
      "signature": 0,
      "status": "NEW",
      "tag": "Block tag",
      "type": "Document type",
      "createDate": "1900-01-01T00:00:00.000Z",
      "updateDate": "1900-01-01T00:00:00.000Z",
      "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
      "document": {
        "@context": [
          "text"
        ],
        "id": "00000000-0000-0000-0000-000000000000",
        "type": [
          "text"
        ],
        "verifiableCredential": [
          {}
        ],
        "proof": {}
      }
    }
  ],
  "schemas": [
    {
      "id": "000000000000000000000001",
      "uuid": "00000000-0000-0000-0000-000000000000",
      "name": "Schema name",
      "description": "Description",
      "entity": "POLICY",
      "iri": "00000000-0000-0000-0000-000000000000",
      "status": "DRAFT",
      "topicId": "0.0.1",
      "version": "1.0.0",
      "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
      "messageId": "0000000000.000000001",
      "category": "POLICY",
      "documentURL": "ipfs://AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
      "contextURL": "ipfs://AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
      "document": {},
      "context": {}
    }
  ]
}

Last updated