namespace IDB.API.DTO.Navigation
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type Node() =
member val EntityName:String = null with get,set
member val ID:String = null with get,set
member val ParentID:String = null with get,set
member val Title:String = null with get,set
member val Count:Nullable<Int32> = new Nullable<Int32>() with get,set
member val ImageKey:String = null with get,set
member val Expanded:Boolean = new Boolean() with get,set
member val Selected:Boolean = new Boolean() with get,set
member val DisplayPath:String = null with get,set
member val ChildNodes:ResizeArray<Node> = new ResizeArray<Node>() with get,set
member val RegistrationPathElement:String = null with get,set
member val QueryPathElement:String = null with get,set
member val Path:String = null with get,set
member val IsHierarchy:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type ViewExplorerNode() =
inherit Node()
member val ViewId:Nullable<Guid> = new Nullable<Guid>() with get,set
member val ExplorerId:Nullable<Guid> = new Nullable<Guid>() with get,set
member val ChildNodes:ResizeArray<ViewExplorerNode> = new ResizeArray<ViewExplorerNode>() with get,set
[<AllowNullLiteral>]
type ViewsAndExplorers() =
member val Nodes:ResizeArray<ViewExplorerNode> = new ResizeArray<ViewExplorerNode>() with get,set
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.
POST /jsv/reply/ViewsAndExplorers HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Nodes:
[
{
ViewId: 00000000-0000-0000-0000-000000000000,
ExplorerId: 00000000-0000-0000-0000-000000000000,
ChildNodes:
[
{
ViewId: 00000000-0000-0000-0000-000000000000,
ExplorerId: 00000000-0000-0000-0000-000000000000,
ChildNodes:
[
{
ViewId: 00000000-0000-0000-0000-000000000000,
ExplorerId: 00000000-0000-0000-0000-000000000000,
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
ChildNodes:
[
{
EntityName: String,
ID: String,
ParentID: String,
Title: String,
Count: 0,
ImageKey: String,
Expanded: False,
Selected: False,
DisplayPath: String,
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
],
RegistrationPathElement: String,
QueryPathElement: String,
Path: String,
IsHierarchy: False
}
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Nodes: [ { ViewId: 00000000-0000-0000-0000-000000000000, ExplorerId: 00000000-0000-0000-0000-000000000000, ChildNodes: [ { ViewId: 00000000-0000-0000-0000-000000000000, ExplorerId: 00000000-0000-0000-0000-000000000000, ChildNodes: [ { ViewId: 00000000-0000-0000-0000-000000000000, ExplorerId: 00000000-0000-0000-0000-000000000000, EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, ChildNodes: [ { EntityName: String, ID: String, ParentID: String, Title: String, Count: 0, ImageKey: String, Expanded: False, Selected: False, DisplayPath: String, RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ], RegistrationPathElement: String, QueryPathElement: String, Path: String, IsHierarchy: False } ] }