| 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. |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Cdn.PublicApiV2.RequestObjects;
using Cdn.PublicApiV2.ResponseObjects;
using Cdn.PublicApiV2.Dto;
namespace Cdn.PublicApiV2.Dto
{
public partial class NodeDto
{
public virtual long Id { get; set; }
public virtual string Name { get; set; }
public virtual string Description { get; set; }
public virtual string FeaturedImageUrl { get; set; }
public virtual string FeaturedImageAttribution { get; set; }
public virtual string FlagCode { get; set; }
public virtual string CountryName { get; set; }
public virtual int SortingPosition { get; set; }
public virtual int NodeChildrenCountLive { get; set; }
public virtual int CollectibleChildrenCountLive { get; set; }
public virtual long? ParentNode_Id { get; set; }
public virtual long? RootNode_Id { get; set; }
public virtual List<NodeDto> ChildNodes { get; set; }
}
}
namespace Cdn.PublicApiV2.RequestObjects
{
///<summary>
///Retrieve a node
///</summary>
[Api(Description="Retrieve a node")]
public partial class GetNodeRequest
{
public virtual long NodeId { get; set; }
}
}
namespace Cdn.PublicApiV2.ResponseObjects
{
public partial class BaseResponse
{
public virtual int Total { get; set; }
public virtual int OpCode { get; set; }
public virtual string ErrorText { get; set; }
public virtual string RequestTime { get; set; }
public virtual string ResponseTime { get; set; }
public virtual string TotalExecutionTime { get; set; }
public virtual bool CachedResponse { get; set; }
public virtual bool PermitAccess { get; set; }
public virtual string AccessDeniedMessage { get; set; }
}
public partial class NodeResponse
: BaseResponse
{
public virtual List<NodeDto> Data { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Data":[{"Id":0,"Name":"String","Description":"String","FeaturedImageUrl":"String","FeaturedImageAttribution":"String","FlagCode":"String","CountryName":"String","SortingPosition":0,"NodeChildrenCountLive":0,"CollectibleChildrenCountLive":0,"ParentNode_Id":0,"RootNode_Id":0,"ChildNodes":[{"Id":0,"Name":"String","Description":"String","FeaturedImageUrl":"String","FeaturedImageAttribution":"String","FlagCode":"String","CountryName":"String","SortingPosition":0,"NodeChildrenCountLive":0,"CollectibleChildrenCountLive":0,"ParentNode_Id":0,"RootNode_Id":0,"ChildNodes":[{"Id":0,"Name":"String","Description":"String","FeaturedImageUrl":"String","FeaturedImageAttribution":"String","FlagCode":"String","CountryName":"String","SortingPosition":0,"NodeChildrenCountLive":0,"CollectibleChildrenCountLive":0,"ParentNode_Id":0,"RootNode_Id":0}]}]}],"Total":0,"OpCode":0,"ErrorText":"String","RequestTime":"String","ResponseTime":"String","TotalExecutionTime":"String","CachedResponse":false,"PermitAccess":false,"AccessDeniedMessage":"String"}