Cdn Public Collector's Pricing Guide (CPG) API V2

<back to all web services

GetNodeChildrenRequest

Catalog

Retrieve node children for a given node

The following routes are available for this service:
GET/GetNodeChildrenRequestThis will return no data for those nodes with collectible children. There is no advanced APi version for this call.
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Cdn.PublicApiV2.RequestObjects
Imports Cdn.PublicApiV2.ResponseObjects
Imports Cdn.PublicApiV2.Dto

Namespace Global

    Namespace Cdn.PublicApiV2.Dto

        Public Partial Class NodeDto
            Public Overridable Property Id As Long
            Public Overridable Property Name As String
            Public Overridable Property Description As String
            Public Overridable Property FeaturedImageUrl As String
            Public Overridable Property FeaturedImageAttribution As String
            Public Overridable Property FlagCode As String
            Public Overridable Property CountryName As String
            Public Overridable Property SortingPosition As Integer
            Public Overridable Property NodeChildrenCountLive As Integer
            Public Overridable Property CollectibleChildrenCountLive As Integer
            Public Overridable Property ParentNode_Id As Long?
            Public Overridable Property RootNode_Id As Long?
            Public Overridable Property ChildNodes As List(Of NodeDto)
        End Class
    End Namespace

    Namespace Cdn.PublicApiV2.RequestObjects

        '''<Summary>
        '''Retrieve node children for a given node
        '''</Summary>
        <Api(Description:="Retrieve node children for a given node")>
        Public Partial Class GetNodeChildrenRequest
            Public Overridable Property NodeId As Long?
        End Class
    End Namespace

    Namespace Cdn.PublicApiV2.ResponseObjects

        Public Partial Class BaseResponse
            Public Overridable Property Total As Integer
            Public Overridable Property OpCode As Integer
            Public Overridable Property ErrorText As String
            Public Overridable Property RequestTime As String
            Public Overridable Property ResponseTime As String
            Public Overridable Property TotalExecutionTime As String
            Public Overridable Property CachedResponse As Boolean
            Public Overridable Property PermitAccess As Boolean
            Public Overridable Property AccessDeniedMessage As String
        End Class

        Public Partial Class NodeResponse
            Inherits BaseResponse
            Public Overridable Property Data As List(Of NodeDto)
        End Class
    End Namespace
End Namespace

VB.NET GetNodeChildrenRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /GetNodeChildrenRequest HTTP/1.1 
Host: cpgpublicapiv2dev.greysheet.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}