namespace IDB.API.DTO
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type UserOrGroup() =
member val ID:Int32 = new Int32() with get,set
member val Title:String = null with get,set
member val IsChecked:Boolean = new Boolean() with get,set
member val Image:String = null with get,set
[<AllowNullLiteral>]
type QuickAddOption() =
member val Name:String = null with get,set
member val EntityType:String = null with get,set
[<AllowNullLiteral>]
type UsersOrGroupsResponse() =
member val NumberOfAllRecords:Int32 = new Int32() with get,set
member val UsersOrGroups:ResizeArray<UserOrGroup> = new ResizeArray<UserOrGroup>() with get,set
member val QuickAddOptions:ResizeArray<QuickAddOption> = new ResizeArray<QuickAddOption>() with get,set
[<AllowNullLiteral>]
type GetUsersAndGroups() =
member val UserEnvironment:Int32 = new Int32() with get,set
member val PageSize:Int32 = new Int32() with get,set
member val PageNumber:Int32 = new Int32() with get,set
member val SearchCriteria:String = null with get,set
member val SelectedUserIDs:ResizeArray<Int32> = new ResizeArray<Int32>() with get,set
member val SelectedGroupIDs:ResizeArray<Int32> = new ResizeArray<Int32>() 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/GetUsersAndGroups HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
UserEnvironment: 0,
PageSize: 0,
PageNumber: 0,
SearchCriteria: String,
SelectedUserIDs:
[
0
],
SelectedGroupIDs:
[
0
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { NumberOfAllRecords: 0, UsersOrGroups: [ { } ], QuickAddOptions: [ { Name: String, EntityType: String } ] }