POST | /v1/User/RefreshToken | Refresh user token before timeout |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.Auth.API.ServiceModel.UserSession
Imports Mercedes.Auth.API.Shared.POCO
Namespace Global
Namespace Mercedes.Auth.API.ServiceModel.UserSession
Public Partial Class RefreshUserTokenRequest
Implements IPost
End Class
Public Partial Class RefreshUserTokenResponse
Public Overridable Property Account As Account
Public Overridable Property IsValid As Boolean
End Class
End Namespace
Namespace Mercedes.Auth.API.Shared.POCO
Public Partial Class Account
Public Overridable Property GasUserId As String
Public Overridable Property UserId As Integer
Public Overridable Property UserRoleId As List(Of Integer)
Public Overridable Property UserRoleRedirectUrl As String
Public Overridable Property UserToken As Guid
Public Overridable Property RetailerGroupId As String
Public Overridable Property Modified As Date
Public Overridable Property Exists As Boolean
Public Overridable Property DefaultVehicleType As String
Public Overridable Property DefaultRetailerGssn As String
End Class
End Namespace
End Namespace
VB.NET RefreshUserTokenRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/User/RefreshToken HTTP/1.1
Host: prod-api-auth-mb-dhc.rapp-customers.co.uk
Accept: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Account":{"GasUserId":"String","UserId":0,"UserRoleId":[0],"UserRoleRedirectUrl":"String","UserToken":"00000000000000000000000000000000","RetailerGroupId":"String","Modified":"\/Date(-62135596800000-0000)\/","Exists":false,"DefaultVehicleType":"String","DefaultRetailerGssn":"String"},"IsValid":false}