POST | /v1/authorisation |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class Authorisation
{
public String GasUserId = null;
public ArrayList<String> ApplicationDotRole = null;
public ArrayList<String> GEMSOutletId = null;
public String Application = null;
public String getGasUserId() { return GasUserId; }
public Authorisation setGasUserId(String value) { this.GasUserId = value; return this; }
public ArrayList<String> getApplicationDotRole() { return ApplicationDotRole; }
public Authorisation setApplicationDotRole(ArrayList<String> value) { this.ApplicationDotRole = value; return this; }
public ArrayList<String> getGemsOutletId() { return GEMSOutletId; }
public Authorisation setGemsOutletId(ArrayList<String> value) { this.GEMSOutletId = value; return this; }
public String getApplication() { return Application; }
public Authorisation setApplication(String value) { this.Application = value; return this; }
}
public static class AuthorisationResponse
{
public String status = null;
public String GasUserId = null;
public String Application = null;
public ArrayList<String> Roles = null;
public ArrayList<String> GSSNRetailerIds = null;
public String DefaultGSSNRetailerId = null;
public String DefaultVehicleType = null;
public String DefaultRole = null;
public Integer DefaultRoleCount = null;
public String getStatus() { return status; }
public AuthorisationResponse setStatus(String value) { this.status = value; return this; }
public String getGasUserId() { return GasUserId; }
public AuthorisationResponse setGasUserId(String value) { this.GasUserId = value; return this; }
public String getApplication() { return Application; }
public AuthorisationResponse setApplication(String value) { this.Application = value; return this; }
public ArrayList<String> getRoles() { return Roles; }
public AuthorisationResponse setRoles(ArrayList<String> value) { this.Roles = value; return this; }
public ArrayList<String> getGssnRetailerIds() { return GSSNRetailerIds; }
public AuthorisationResponse setGssnRetailerIds(ArrayList<String> value) { this.GSSNRetailerIds = value; return this; }
public String getDefaultGSSNRetailerId() { return DefaultGSSNRetailerId; }
public AuthorisationResponse setDefaultGSSNRetailerId(String value) { this.DefaultGSSNRetailerId = value; return this; }
public String getDefaultVehicleType() { return DefaultVehicleType; }
public AuthorisationResponse setDefaultVehicleType(String value) { this.DefaultVehicleType = value; return this; }
public String getDefaultRole() { return DefaultRole; }
public AuthorisationResponse setDefaultRole(String value) { this.DefaultRole = value; return this; }
public Integer getDefaultRoleCount() { return DefaultRoleCount; }
public AuthorisationResponse setDefaultRoleCount(Integer value) { this.DefaultRoleCount = 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.
POST /v1/authorisation HTTP/1.1
Host: prod-api-auth-mb-dhc.rapp-customers.co.uk
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"GasUserId":"String","ApplicationDotRole":["String"],"GEMSOutletId":["String"],"Application":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"status":"String","GasUserId":"String","Application":"String","Roles":["String"],"GSSNRetailerIds":["String"],"DefaultGSSNRetailerId":"String","DefaultVehicleType":"String","DefaultRole":"String","DefaultRoleCount":0}