| GET | /security/{brand}/{posCode}/{mnemonicCode} | Get information if a Pos/User is authorized on a specific function |
|---|
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 GetPosAuthResponse() =
///<summary>
///Is Authorized
///</summary>
[<ApiMember(Description="Is Authorized", IsRequired=true)>]
member val isAuthorized:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type GetPosAuth() =
///<summary>
///Brand Trigram
///</summary>
[<ApiMember(Description="Brand Trigram", IsRequired=true)>]
member val brand:String = null with get,set
///<summary>
///POS Legacy
///</summary>
[<ApiMember(Description="POS Legacy", IsRequired=true)>]
member val posCode:String = null with get,set
///<summary>
///Mnemonic Petal Code
///</summary>
[<ApiMember(Description="Mnemonic Petal Code", IsRequired=true)>]
member val mnemonicCode:String = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /security/{brand}/{posCode}/{mnemonicCode} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetPosAuthResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Security.ServiceModel"> <isAuthorized>false</isAuthorized> </GetPosAuthResponse>