| GET | /GetNodeChildrenRequest | This will return no data for those nodes with 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 node children for a given node
*/
@Api(Description="Retrieve node children for a given node")
open class GetNodeChildrenRequest
{
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 GetNodeChildrenRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /GetNodeChildrenRequest HTTP/1.1 Host: publicapiv2dev.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
}