List all the schemas and policy relevant to the rule with the specified ID
Last updated
Last updated
Retrieves schema rule relationships for the specified ID.
Schema Rule Identifier
"000000000000000000000001"
Successful operation.
const response = await fetch('/api/v1/schema-rules/{ruleId}/relationships', {
method: 'GET',
headers: {
"Authorization": "Bearer JWT"
},
});
const data = await response.json();
{
"policy": {
"id": "000000000000000000000001",
"uuid": "00000000-0000-0000-0000-000000000000",
"name": "Policy name",
"description": "Description",
"topicDescription": "Description",
"policyTag": "Tag",
"status": "DRAFT",
"creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"topicId": "0.0.1",
"messageId": "0000000000.000000001",
"codeVersion": "1.0.0",
"createDate": "1900-01-01T00:00:00.000Z",
"version": "1.0.0",
"userRole": "Installer",
"userRoles": [
"Installer"
],
"userGroup": {
"uuid": "00000000-0000-0000-0000-000000000000",
"role": "Installer",
"groupLabel": "Label",
"groupName": "Name",
"active": true
},
"userGroups": [
{
"uuid": "00000000-0000-0000-0000-000000000000",
"role": "Installer",
"groupLabel": "Label",
"groupName": "Name",
"active": true
}
],
"policyRoles": [
"Registrant"
],
"policyNavigation": [
{
"role": "Registrant",
"steps": [
{
"block": "Block tag",
"level": 1,
"name": "Step name"
}
]
}
],
"policyTopics": [
{
"name": "Project",
"description": "<p>Project</p>",
"memoObj": "topic",
"static": false,
"type": "any",
"__$markdownParsed": true
}
],
"policyTokens": [
{
"tokenName": "Token name",
"tokenSymbol": "Token symbol",
"tokenType": "non-fungible",
"decimals": "",
"changeSupply": true,
"enableAdmin": true,
"enableFreeze": true,
"enableKYC": true,
"enableWipe": true,
"templateTokenTag": "token_template_0"
}
],
"policyGroups": [
{
"name": "Group name",
"creator": "Registrant",
"groupAccessType": "Private",
"groupRelationshipType": "Multiple",
"members": [
"Registrant"
]
}
],
"categories": [
"text"
],
"projectSchema": "00000000-0000-0000-0000-000000000000",
"tests": [
{
"id": "000000000000000000000001",
"uuid": "00000000-0000-0000-0000-000000000000",
"name": "Test Name",
"policyId": "000000000000000000000001",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"status": "New",
"date": "1900-01-01T00:00:00.000Z",
"duration": 0,
"progress": 0,
"resultId": "00000000-0000-0000-0000-000000000000",
"result": "text"
}
]
},
"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"
}
]
}