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

<back to all web services

GetNodeRequest

Catalog

Retrieve a node

The following routes are available for this service:
GET/GetNodeRequestWhen 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.
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


/**
* Retrieve a node
*/
@Api(Description="Retrieve a node")
open class GetNodeRequest
{
    open var NodeId:Long? = null
}

open class NodeResponse : BaseResponse()
{
    open var Data:ArrayList<NodeDto>? = null
}

open class BaseResponse
{
    open var Total:Int? = null
    open var OpCode:Int? = null
    open var ErrorText:String? = null
    open var RequestTime:String? = null
    open var ResponseTime:String? = null
    open var TotalExecutionTime:String? = null
    open var CachedResponse:Boolean? = null
    open var PermitAccess:Boolean? = null
    open var AccessDeniedMessage:String? = null
}

open class NodeDto
{
    open var Id:Long? = null
    open var Name:String? = null
    open var Description:String? = null
    open var FeaturedImageUrl:String? = null
    open var FeaturedImageAttribution:String? = null
    open var FlagCode:String? = null
    open var CountryName:String? = null
    open var SortingPosition:Int? = null
    open var NodeChildrenCountLive:Int? = null
    open var CollectibleChildrenCountLive:Int? = null
    open var ParentNode_Id:Long? = null
    open var RootNode_Id:Long? = null
    open var ChildNodes:ArrayList<NodeDto>? = null
}

Kotlin GetNodeRequest DTOs

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

HTTP + JSV

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

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