Mercedes.Auth.API

<back to all web services

Authorisation

The following routes are available for this service:
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; }
    }

}

Java Authorisation DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<Authorisation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Auth.API.ServiceModel">
  <Application>String</Application>
  <ApplicationDotRole xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </ApplicationDotRole>
  <GEMSOutletId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </GEMSOutletId>
  <GasUserId>String</GasUserId>
</Authorisation>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AuthorisationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Auth.API.ServiceModel">
  <Application>String</Application>
  <DefaultGSSNRetailerId>String</DefaultGSSNRetailerId>
  <DefaultRole>String</DefaultRole>
  <DefaultRoleCount>0</DefaultRoleCount>
  <DefaultVehicleType>String</DefaultVehicleType>
  <GSSNRetailerIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </GSSNRetailerIds>
  <GasUserId>String</GasUserId>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Roles>
  <status>String</status>
</AuthorisationResponse>