GET | /sessionInfo | ||
---|---|---|---|
GET POST | /GetSessionInfo |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Trackunit.API
Namespace Global
Namespace Trackunit.API
<DataContract>
Public Partial Class GetSessionInfo
End Class
<DataContract>
Public Partial Class GetSessionInfoResponse
<DataMember>
Public Overridable Property Data As SessionInfo
<DataMember>
Public Overridable Property ResponseStatus As ResponseStatus
End Class
<DataContract>
Public Partial Class SessionInfo
<DataMember>
Public Overridable Property DistanceUoM As String
<DataMember>
Public Overridable Property SpeedUoM As String
<DataMember>
Public Overridable Property TemperatureUoM As String
End Class
End Namespace
End Namespace
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 /GetSessionInfo HTTP/1.1
Host: api.trackunit.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"data":{"distanceUoM":"String","speedUoM":"String","temperatureUoM":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}