GET api/NodeParentsList/{id}
Gets all the parents for this node
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Node ID for which to find parents of |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
This node with all its parents in a flat list, in order of ancestry.
NodeWithAllParentsName | Description | Type | Additional information |
---|---|---|---|
Node | Node |
None. |
|
Parents | Collection of Collection of Node |
None. |
Response Formats
application/json, text/json
Sample:
{ "Parents": [ [ { "ID": 1, "Name": "sample string 2", "NodeType": 0, "BrandNode": 1, "ManufacturerNodes": [ 1, 2 ], "ManufacturerNodesSerialized": "1;2", "ArchiveStatus": 0, "Visibility": 0, "DateCreated": "2024-11-21T10:04:58.7403692Z", "DateModified": "2024-11-21T10:04:58.7403692Z" }, { "ID": 1, "Name": "sample string 2", "NodeType": 0, "BrandNode": 1, "ManufacturerNodes": [ 1, 2 ], "ManufacturerNodesSerialized": "1;2", "ArchiveStatus": 0, "Visibility": 0, "DateCreated": "2024-11-21T10:04:58.7403692Z", "DateModified": "2024-11-21T10:04:58.7403692Z" } ], [ { "ID": 1, "Name": "sample string 2", "NodeType": 0, "BrandNode": 1, "ManufacturerNodes": [ 1, 2 ], "ManufacturerNodesSerialized": "1;2", "ArchiveStatus": 0, "Visibility": 0, "DateCreated": "2024-11-21T10:04:58.7403692Z", "DateModified": "2024-11-21T10:04:58.7403692Z" }, { "ID": 1, "Name": "sample string 2", "NodeType": 0, "BrandNode": 1, "ManufacturerNodes": [ 1, 2 ], "ManufacturerNodesSerialized": "1;2", "ArchiveStatus": 0, "Visibility": 0, "DateCreated": "2024-11-21T10:04:58.7403692Z", "DateModified": "2024-11-21T10:04:58.7403692Z" } ] ], "Node": null }
text/html
Sample:
{"Parents":[[{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2024-11-21T10:04:58.7403692Z","DateModified":"2024-11-21T10:04:58.7403692Z"},{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2024-11-21T10:04:58.7403692Z","DateModified":"2024-11-21T10:04:58.7403692Z"}],[{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2024-11-21T10:04:58.7403692Z","DateModified":"2024-11-21T10:04:58.7403692Z"},{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2024-11-21T10:04:58.7403692Z","DateModified":"2024-11-21T10:04:58.7403692Z"}]],"Node":null}
application/xml, text/xml
Sample:
<NodeWithAllParents xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Jotunheim.Models.ViewModels.Parents"> <Node xmlns:d2p1="http://schemas.datacontract.org/2004/07/Jotunheim.Models.Core" i:nil="true" /> <Parents xmlns:d2p1="http://schemas.datacontract.org/2004/07/Jotunheim.Models.Core"> <d2p1:ArrayOfNode> <d2p1:Node> <d2p1:ArchiveStatus>Live</d2p1:ArchiveStatus> <d2p1:BrandNode>1</d2p1:BrandNode> <d2p1:DateCreated>2024-11-21T10:04:58.7403692Z</d2p1:DateCreated> <d2p1:DateModified>2024-11-21T10:04:58.7403692Z</d2p1:DateModified> <d2p1:ID>1</d2p1:ID> <d2p1:ManufacturerNodes xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </d2p1:ManufacturerNodes> <d2p1:ManufacturerNodesSerialized>1;2</d2p1:ManufacturerNodesSerialized> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:NodeType>Heading</d2p1:NodeType> <d2p1:Visibility>Public</d2p1:Visibility> </d2p1:Node> <d2p1:Node> <d2p1:ArchiveStatus>Live</d2p1:ArchiveStatus> <d2p1:BrandNode>1</d2p1:BrandNode> <d2p1:DateCreated>2024-11-21T10:04:58.7403692Z</d2p1:DateCreated> <d2p1:DateModified>2024-11-21T10:04:58.7403692Z</d2p1:DateModified> <d2p1:ID>1</d2p1:ID> <d2p1:ManufacturerNodes xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </d2p1:ManufacturerNodes> <d2p1:ManufacturerNodesSerialized>1;2</d2p1:ManufacturerNodesSerialized> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:NodeType>Heading</d2p1:NodeType> <d2p1:Visibility>Public</d2p1:Visibility> </d2p1:Node> </d2p1:ArrayOfNode> <d2p1:ArrayOfNode> <d2p1:Node> <d2p1:ArchiveStatus>Live</d2p1:ArchiveStatus> <d2p1:BrandNode>1</d2p1:BrandNode> <d2p1:DateCreated>2024-11-21T10:04:58.7403692Z</d2p1:DateCreated> <d2p1:DateModified>2024-11-21T10:04:58.7403692Z</d2p1:DateModified> <d2p1:ID>1</d2p1:ID> <d2p1:ManufacturerNodes xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </d2p1:ManufacturerNodes> <d2p1:ManufacturerNodesSerialized>1;2</d2p1:ManufacturerNodesSerialized> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:NodeType>Heading</d2p1:NodeType> <d2p1:Visibility>Public</d2p1:Visibility> </d2p1:Node> <d2p1:Node> <d2p1:ArchiveStatus>Live</d2p1:ArchiveStatus> <d2p1:BrandNode>1</d2p1:BrandNode> <d2p1:DateCreated>2024-11-21T10:04:58.7403692Z</d2p1:DateCreated> <d2p1:DateModified>2024-11-21T10:04:58.7403692Z</d2p1:DateModified> <d2p1:ID>1</d2p1:ID> <d2p1:ManufacturerNodes xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </d2p1:ManufacturerNodes> <d2p1:ManufacturerNodesSerialized>1;2</d2p1:ManufacturerNodesSerialized> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:NodeType>Heading</d2p1:NodeType> <d2p1:Visibility>Public</d2p1:Visibility> </d2p1:Node> </d2p1:ArrayOfNode> </Parents> </NodeWithAllParents>