GET api/NodeParentsList/{id}

Gets all the parents for this node

Request Information

URI Parameters

NameDescriptionTypeAdditional 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.

NodeWithAllParents
NameDescriptionTypeAdditional information
Node

The child node

Node

None.

Parents

The list of all the paths between this node and the root node

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": "2019-04-24T18:48:04.1535888Z",
        "DateModified": "2019-04-24T18:48:04.1535888Z"
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2019-04-24T18:48:04.1535888Z",
        "DateModified": "2019-04-24T18:48:04.1535888Z"
      }
    ],
    [
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2019-04-24T18:48:04.1535888Z",
        "DateModified": "2019-04-24T18:48:04.1535888Z"
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2019-04-24T18:48:04.1535888Z",
        "DateModified": "2019-04-24T18:48:04.1535888Z"
      }
    ]
  ],
  "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":"2019-04-24T18:48:04.1535888Z","DateModified":"2019-04-24T18:48:04.1535888Z"},{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2019-04-24T18:48:04.1535888Z","DateModified":"2019-04-24T18:48:04.1535888Z"}],[{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2019-04-24T18:48:04.1535888Z","DateModified":"2019-04-24T18:48:04.1535888Z"},{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2019-04-24T18:48:04.1535888Z","DateModified":"2019-04-24T18:48:04.1535888Z"}]],"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>2019-04-24T18:48:04.1692286Z</d2p1:DateCreated>
        <d2p1:DateModified>2019-04-24T18:48:04.1692286Z</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>2019-04-24T18:48:04.1692286Z</d2p1:DateCreated>
        <d2p1:DateModified>2019-04-24T18:48:04.1692286Z</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>2019-04-24T18:48:04.1692286Z</d2p1:DateCreated>
        <d2p1:DateModified>2019-04-24T18:48:04.1692286Z</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>2019-04-24T18:48:04.1692286Z</d2p1:DateCreated>
        <d2p1:DateModified>2019-04-24T18:48:04.1692286Z</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>