| GET | /roles | Get 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
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.
GET /roles HTTP/1.1 Host: dev-api-booster.richemont.com Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ ]