DigiOffice Gateway Web Services

<back to all web services

GetUsersAndGroups

Requires Authentication
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

F# GetUsersAndGroups DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/GetUsersAndGroups HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"UserEnvironment":0,"PageSize":0,"PageNumber":0,"SearchCriteria":"String","SelectedUserIDs":[0],"SelectedGroupIDs":[0]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"NumberOfAllRecords":0,"UsersOrGroups":[{}],"QuickAddOptions":[{"Name":"String","EntityType":"String"}]}