| GET | /security/{brand}/{posCode}/{mnemonicCode} | Get information if a Pos/User is authorized on a specific function |
|---|
import Foundation
import ServiceStack
public class GetPosAuth : Codable
{
/**
* Brand Trigram
*/
// @ApiMember(Description="Brand Trigram", IsRequired=true)
public var brand:String
/**
* POS Legacy
*/
// @ApiMember(Description="POS Legacy", IsRequired=true)
public var posCode:String
/**
* Mnemonic Petal Code
*/
// @ApiMember(Description="Mnemonic Petal Code", IsRequired=true)
public var mnemonicCode:String
required public init(){}
}
public class GetPosAuthResponse : Codable
{
/**
* Is Authorized
*/
// @ApiMember(Description="Is Authorized", IsRequired=true)
public var isAuthorized:Bool
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"isAuthorized":false}