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

Node

None.

Parents

Collection of Collection of Node

None.

Response Formats

application/json

Sample:
{
  "Parents": [
    [
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2021-05-09T02:57:06.0923722Z",
        "DateModified": "2021-05-09T02:57:06.0923722Z"
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2021-05-09T02:57:06.0923722Z",
        "DateModified": "2021-05-09T02:57:06.0923722Z"
      }
    ],
    [
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2021-05-09T02:57:06.0923722Z",
        "DateModified": "2021-05-09T02:57:06.0923722Z"
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2021-05-09T02:57:06.0923722Z",
        "DateModified": "2021-05-09T02:57:06.0923722Z"
      }
    ]
  ],
  "Node": null
}

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": "2021-05-09T02:57:06.1079409Z",
        "DateModified": "2021-05-09T02:57:06.1079409Z"
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2021-05-09T02:57:06.1079409Z",
        "DateModified": "2021-05-09T02:57:06.1079409Z"
      }
    ],
    [
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2021-05-09T02:57:06.1079409Z",
        "DateModified": "2021-05-09T02:57:06.1079409Z"
      },
      {
        "ID": 1,
        "Name": "sample string 2",
        "NodeType": 0,
        "BrandNode": 1,
        "ManufacturerNodes": [
          1,
          2
        ],
        "ManufacturerNodesSerialized": "1;2",
        "ArchiveStatus": 0,
        "Visibility": 0,
        "DateCreated": "2021-05-09T02:57:06.1079409Z",
        "DateModified": "2021-05-09T02:57:06.1079409Z"
      }
    ]
  ],
  "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":"2021-05-09T02:57:06.1079409Z","DateModified":"2021-05-09T02:57:06.1079409Z"},{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2021-05-09T02:57:06.1079409Z","DateModified":"2021-05-09T02:57:06.1079409Z"}],[{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2021-05-09T02:57:06.1079409Z","DateModified":"2021-05-09T02:57:06.1079409Z"},{"ID":1,"Name":"sample string 2","NodeType":0,"BrandNode":1,"ManufacturerNodes":[1,2],"ManufacturerNodesSerialized":"1;2","ArchiveStatus":0,"Visibility":0,"DateCreated":"2021-05-09T02:57:06.1079409Z","DateModified":"2021-05-09T02:57:06.1079409Z"}]],"Node":null}

application/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>2021-05-09T02:57:06.1079409Z</d2p1:DateCreated>
        <d2p1:DateModified>2021-05-09T02:57:06.1079409Z</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>2021-05-09T02:57:06.1079409Z</d2p1:DateCreated>
        <d2p1:DateModified>2021-05-09T02:57:06.1079409Z</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>2021-05-09T02:57:06.1079409Z</d2p1:DateCreated>
        <d2p1:DateModified>2021-05-09T02:57:06.1079409Z</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>2021-05-09T02:57:06.1079409Z</d2p1:DateCreated>
        <d2p1:DateModified>2021-05-09T02:57:06.1079409Z</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>

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>2021-05-09T02:57:06.1235265Z</d2p1:DateCreated>
        <d2p1:DateModified>2021-05-09T02:57:06.1235265Z</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>2021-05-09T02:57:06.1235265Z</d2p1:DateCreated>
        <d2p1:DateModified>2021-05-09T02:57:06.1235265Z</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>2021-05-09T02:57:06.1235265Z</d2p1:DateCreated>
        <d2p1:DateModified>2021-05-09T02:57:06.1235265Z</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>2021-05-09T02:57:06.1235265Z</d2p1:DateCreated>
        <d2p1:DateModified>2021-05-09T02:57:06.1235265Z</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>