| GET | /security/{brand}/{posCode}/{mnemonicCode} | Get information if a Pos/User is authorized on a specific function |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetPosAuth
{
/**
* Brand Trigram
*/
@ApiMember(Description="Brand Trigram", IsRequired=true)
public String brand = null;
/**
* POS Legacy
*/
@ApiMember(Description="POS Legacy", IsRequired=true)
public String posCode = null;
/**
* Mnemonic Petal Code
*/
@ApiMember(Description="Mnemonic Petal Code", IsRequired=true)
public String mnemonicCode = null;
public String getBrand() { return brand; }
public GetPosAuth setBrand(String value) { this.brand = value; return this; }
public String getPosCode() { return posCode; }
public GetPosAuth setPosCode(String value) { this.posCode = value; return this; }
public String getMnemonicCode() { return mnemonicCode; }
public GetPosAuth setMnemonicCode(String value) { this.mnemonicCode = value; return this; }
}
public static class GetPosAuthResponse
{
/**
* Is Authorized
*/
@ApiMember(Description="Is Authorized", IsRequired=true)
public Boolean isAuthorized = null;
public Boolean getIsAuthorized() { return isAuthorized; }
public GetPosAuthResponse setIsAuthorized(Boolean value) { this.isAuthorized = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"isAuthorized":false}