Richemont.Booster2.PublicApi

<back to all web services

GetRoles

Requires Authentication
The following routes are available for this service:
GET/rolesGet user if exists and is not disabled
namespace Richemont.Booster2.PublicApi.Security.ServiceModel

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

    [<AllowNullLiteral>]
    type Roles() = 
        ///<summary>
        ///Role Code
        ///</summary>
        [<ApiMember(Description="Role Code", IsRequired=true)>]
        member val roleCode:Guid = new Guid() with get,set

        ///<summary>
        ///Role Description
        ///</summary>
        [<ApiMember(Description="Role Description", IsRequired=true)>]
        member val roleDs:String = null with get,set

        ///<summary>
        ///Role Type
        ///</summary>
        [<ApiMember(Description="Role Type", IsRequired=true)>]
        member val roleType:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type GetRolesResponse() = 
        inherit ResizeArray<Roles>()

    [<AllowNullLiteral>]
    type GetRoles() = 
        ///<summary>
        ///User type id
        ///</summary>
        [<ApiMember(Description="User type id", IsRequired=true)>]
        member val type:String = null with get,set

F# GetRoles DTOs

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

HTTP + OTHER

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

GET /roles HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[]