| 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. |
|---|
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
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/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"}