Portal

<back to all web services

BrowseAllUser

Requires Authentication
Required role:VeoliaAdmin
The following routes are available for this service:
POST/user
namespace Portal.Common

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type GridSortDirection =
        | None = 0
        | Asc = 1
        | Desc = 2

    [<AllowNullLiteral>]
    type GridViewColumnState() = 
        member val FieldName:String = null with get,set
        member val SortDirection:GridSortDirection = new GridSortDirection() with get,set

    type FilterOperator =
        | NotSet = 0
        | Equal = 1
        | Greater = 2
        | Less = 3
        | GreaterOrEqual = 4
        | LessOrEqual = 5
        | NotEqual = 6
        | IsNull = 7
        | IsNotNull = 8
        | Like = 9
        | NotLike = 10
        | Begins = 11
        | Ends = 12
        | In = 13
        | Between = 14

    [<AllowNullLiteral>]
    type GridViewColumnFilter() = 
        member val FieldName:String = null with get,set
        member val FilterValue:String = null with get,set
        member val Operator:FilterOperator = new FilterOperator() with get,set

    [<AllowNullLiteral>]
    type GridViewPagerState() = 
        member val SkipRowCount:Int32 = new Int32() with get,set
        member val PageRowCount:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type GridViewState() = 
        member val ColumnState:GridViewColumnState = null with get,set
        member val ColumnFilters:ResizeArray<GridViewColumnFilter> = new ResizeArray<GridViewColumnFilter>() with get,set
        member val PagerState:GridViewPagerState = null with get,set
        member val IsReturnCount:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type PaginationRequestBase() = 
        member val GridViewState:GridViewState = null with get,set

    [<AllowNullLiteral>]
    type BrowseAllUser() = 
        inherit PaginationRequestBase()
        interface IPost

    [<AllowNullLiteral>]
    type ResponseBase() = 
        member val ResponseStatus:ResponseStatus = null with get,set

    type ProcedureType =
        | Competition = 0
        | Simplified = 1

    type TenderType =
        | Private = 0
        | Public = 1

    type TenderStatus =
        | FirstRound = 0
        | SecondRound = 1
        | ThirdRound = 2
        | Successful = 3
        | UnSuccessful = 4
        | Revoked = 5

    [<AllowNullLiteral>]
    type TenderSimple() = 
        member val TenderId:Int32 = new Int32() with get,set
        member val TenderIdentifier:String = null with get,set
        member val ProcedureType:ProcedureType = new ProcedureType() with get,set
        member val Subject:String = null with get,set
        member val TenderRoundName:String = null with get,set
        member val SectionName:String = null with get,set
        member val Deadline:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val TenderType:TenderType = new TenderType() with get,set
        member val TenderStatus:TenderStatus = new TenderStatus() with get,set
        member val IsUnderPublish:Boolean = new Boolean() with get,set
        member val PublishStartDateTime:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val PublishEndDateTime:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val PublishedById:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val IsProcurementEnabled:Boolean = new Boolean() with get,set
        member val IsComplianceEnabled:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type PaginationResponse<TenderSimple>() = 
        inherit ResponseBase()
        member val Result:PaginationResult<TenderSimple> = null with get,set

    [<AllowNullLiteral>]
    type PaginationResult<TModel>() = 
        member val TotalRowCount:Int32 = new Int32() with get,set
        member val Items:ResizeArray<TModel> = new ResizeArray<TModel>() with get,set

F# BrowseAllUser 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 /user HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"GridViewState":{"ColumnState":{"FieldName":"String","SortDirection":0},"ColumnFilters":[{"FieldName":"String","FilterValue":"String","Operator":0}],"PagerState":{"SkipRowCount":0,"PageRowCount":0},"IsReturnCount":false}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Result":{"TotalRowCount":0,"Items":[{"VatNumber":"String","SupplierName":"String","SupplierShortName":"String","Id":0,"Email":"String","DisplayName":"String","MobilePhoneNumber":"String","MobilePhoneNumberCountryCode":"String","PhoneNumber":"String","PhoneNumberCountryCode":"String","PhoneNumberExtension":"String","OrganizationUnit":"String","Position":"String","Role":"String","Status":0}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}