| GET | /GetNodeRequest | When NodeChildrenCountLive > 0 then this is a leaf node and has Node children. If CollectibleChildrenCountLive > 0 then the node has collectible children. There is no advanced APi version for this call. |
|---|
namespace Cdn.PublicApiV2.Dto
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type BaseResponse() =
member val Total:Int32 = new Int32() with get,set
member val OpCode:Int32 = new Int32() with get,set
member val ErrorText:String = null with get,set
member val RequestTime:String = null with get,set
member val ResponseTime:String = null with get,set
member val TotalExecutionTime:String = null with get,set
member val CachedResponse:Boolean = new Boolean() with get,set
member val PermitAccess:Boolean = new Boolean() with get,set
member val AccessDeniedMessage:String = null with get,set
[<AllowNullLiteral>]
type NodeDto() =
member val Id:Int64 = new Int64() with get,set
member val Name:String = null with get,set
member val Description:String = null with get,set
member val FeaturedImageUrl:String = null with get,set
member val FeaturedImageAttribution:String = null with get,set
member val FlagCode:String = null with get,set
member val CountryName:String = null with get,set
member val SortingPosition:Int32 = new Int32() with get,set
member val NodeChildrenCountLive:Int32 = new Int32() with get,set
member val CollectibleChildrenCountLive:Int32 = new Int32() with get,set
member val ParentNode_Id:Nullable<Int64> = new Nullable<Int64>() with get,set
member val RootNode_Id:Nullable<Int64> = new Nullable<Int64>() with get,set
member val ChildNodes:ResizeArray<NodeDto> = null with get,set
[<AllowNullLiteral>]
type NodeResponse() =
inherit BaseResponse()
member val Data:ResizeArray<NodeDto> = null with get,set
///<summary>
///Retrieve a node
///</summary>
[<Api(Description="Retrieve a node")>]
[<AllowNullLiteral>]
type GetNodeRequest() =
member val NodeId:Int64 = new Int64() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /GetNodeRequest HTTP/1.1 Host: publicapiv2dev.greysheet.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<NodeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.PublicApiV2.ResponseObjects">
<AccessDeniedMessage>String</AccessDeniedMessage>
<CachedResponse>false</CachedResponse>
<ErrorText>String</ErrorText>
<OpCode>0</OpCode>
<PermitAccess>false</PermitAccess>
<RequestTime>String</RequestTime>
<ResponseTime>String</ResponseTime>
<Total>0</Total>
<TotalExecutionTime>String</TotalExecutionTime>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.PublicApiV2.Dto">
<d2p1:NodeDto>
<d2p1:ChildNodes>
<d2p1:NodeDto>
<d2p1:ChildNodes>
<d2p1:NodeDto>
<d2p1:ChildNodes i:nil="true" />
<d2p1:CollectibleChildrenCountLive>0</d2p1:CollectibleChildrenCountLive>
<d2p1:CountryName>String</d2p1:CountryName>
<d2p1:Description>String</d2p1:Description>
<d2p1:FeaturedImageAttribution>String</d2p1:FeaturedImageAttribution>
<d2p1:FeaturedImageUrl>String</d2p1:FeaturedImageUrl>
<d2p1:FlagCode>String</d2p1:FlagCode>
<d2p1:Id>0</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:NodeChildrenCountLive>0</d2p1:NodeChildrenCountLive>
<d2p1:ParentNode_Id>0</d2p1:ParentNode_Id>
<d2p1:RootNode_Id>0</d2p1:RootNode_Id>
<d2p1:SortingPosition>0</d2p1:SortingPosition>
</d2p1:NodeDto>
</d2p1:ChildNodes>
<d2p1:CollectibleChildrenCountLive>0</d2p1:CollectibleChildrenCountLive>
<d2p1:CountryName>String</d2p1:CountryName>
<d2p1:Description>String</d2p1:Description>
<d2p1:FeaturedImageAttribution>String</d2p1:FeaturedImageAttribution>
<d2p1:FeaturedImageUrl>String</d2p1:FeaturedImageUrl>
<d2p1:FlagCode>String</d2p1:FlagCode>
<d2p1:Id>0</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:NodeChildrenCountLive>0</d2p1:NodeChildrenCountLive>
<d2p1:ParentNode_Id>0</d2p1:ParentNode_Id>
<d2p1:RootNode_Id>0</d2p1:RootNode_Id>
<d2p1:SortingPosition>0</d2p1:SortingPosition>
</d2p1:NodeDto>
</d2p1:ChildNodes>
<d2p1:CollectibleChildrenCountLive>0</d2p1:CollectibleChildrenCountLive>
<d2p1:CountryName>String</d2p1:CountryName>
<d2p1:Description>String</d2p1:Description>
<d2p1:FeaturedImageAttribution>String</d2p1:FeaturedImageAttribution>
<d2p1:FeaturedImageUrl>String</d2p1:FeaturedImageUrl>
<d2p1:FlagCode>String</d2p1:FlagCode>
<d2p1:Id>0</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:NodeChildrenCountLive>0</d2p1:NodeChildrenCountLive>
<d2p1:ParentNode_Id>0</d2p1:ParentNode_Id>
<d2p1:RootNode_Id>0</d2p1:RootNode_Id>
<d2p1:SortingPosition>0</d2p1:SortingPosition>
</d2p1:NodeDto>
</Data>
</NodeResponse>