Mercedes.Auth.API

<back to all web services

Authorisation

The following routes are available for this service:
POST/v1/authorisation
namespace Mercedes.Auth.API.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type AuthorisationResponse() = 
        member val status:String = null with get,set
        member val GasUserId:String = null with get,set
        member val Application:String = null with get,set
        member val Roles:ResizeArray<String> = null with get,set
        member val GSSNRetailerIds:ResizeArray<String> = null with get,set
        member val DefaultGSSNRetailerId:String = null with get,set
        member val DefaultVehicleType:String = null with get,set
        member val DefaultRole:String = null with get,set
        member val DefaultRoleCount:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type Authorisation() = 
        member val GasUserId:String = null with get,set
        member val ApplicationDotRole:ResizeArray<String> = null with get,set
        member val GEMSOutletId:ResizeArray<String> = null with get,set
        member val Application:String = null with get,set

F# Authorisation DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

{"GasUserId":"String","ApplicationDotRole":["String"],"GEMSOutletId":["String"],"Application":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"status":"String","GasUserId":"String","Application":"String","Roles":["String"],"GSSNRetailerIds":["String"],"DefaultGSSNRetailerId":"String","DefaultVehicleType":"String","DefaultRole":"String","DefaultRoleCount":0}