GalaxyMobile Client API

<back to all web services

GetVehicleList

The following routes are available for this service:
GET/galaxy/vehicle/listRetrieve a list of a user's vehicles.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports WebService.ClientServiceModel.Vehicles
Imports WebService.ClientServiceModel.Base
Imports CommonService.Api.Models.Base

Namespace Global

    Namespace CommonService.Api.Models.Base

        Public Partial Class ApiServiceResponse
            Implements IServiceResponse
            Public Overridable Property Description As String
            Public Overridable Property Heading As String
            Public Overridable Property WasSuccessful As Boolean
            Public Overridable Property ModelState As Object
        End Class
    End Namespace

    Namespace WebService.ClientServiceModel.Base

        Public Partial Class ApiServiceRequest
            Implements IServiceRequest
            Implements IHasApiKey
            '''<Summary>
            '''The API Key required for authentication
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The API Key required for authentication", IsRequired:=true)>
            Public Overridable Property ApiKey As String
        End Class
    End Namespace

    Namespace WebService.ClientServiceModel.Vehicles

        Public Partial Class GetVehicleList
            Inherits ApiServiceRequest
            '''<Summary>
            '''ID Number of the user making this request.
            '''</Summary>
            <ApiMember(Description:="ID Number of the user making this request.", IsRequired:=true)>
            Public Overridable Property IdNumber As String
        End Class

        Public Partial Class VehicleData
            '''<Summary>
            '''The ID of the vehicle.
            '''</Summary>
            <ApiMember(Description:="The ID of the vehicle.")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''Whether the vehicle has license disk information.
            '''</Summary>
            <ApiMember(Description:="Whether the vehicle has license disk information.")>
            Public Overridable Property HasLicense As Boolean

            '''<Summary>
            '''The vehicle license number.
            '''</Summary>
            <ApiMember(Description:="The vehicle license number.")>
            Public Overridable Property LicenseNumber As String

            '''<Summary>
            '''The vehicle registration number.
            '''</Summary>
            <ApiMember(Description:="The vehicle registration number.")>
            Public Overridable Property RegistrationNumber As String

            '''<Summary>
            '''The vehicle VIN number.
            '''</Summary>
            <ApiMember(Description:="The vehicle VIN number.")>
            Public Overridable Property Vin As String

            '''<Summary>
            '''The vehicle make.
            '''</Summary>
            <ApiMember(Description:="The vehicle make.")>
            Public Overridable Property Make As String

            '''<Summary>
            '''The vehicle series.
            '''</Summary>
            <ApiMember(Description:="The vehicle series.")>
            Public Overridable Property Series As String

            '''<Summary>
            '''The vehicle colour.
            '''</Summary>
            <ApiMember(Description:="The vehicle colour.")>
            Public Overridable Property Colour As String

            '''<Summary>
            '''The vehicle license expiry date in ISO 8601 format.
            '''</Summary>
            <ApiMember(Description:="The vehicle license expiry date in ISO 8601 format.")>
            Public Overridable Property Expiry As String

            '''<Summary>
            '''True if this vehicle's licence expiring soon.
            '''</Summary>
            <ApiMember(Description:="True if this vehicle's licence expiring soon.")>
            Public Overridable Property ExpiresSoon As Boolean

            '''<Summary>
            '''True if this vehicle's license expired.
            '''</Summary>
            <ApiMember(Description:="True if this vehicle's license expired.")>
            Public Overridable Property Expired As Boolean
        End Class

        Public Partial Class VehicleListResponse
            Inherits ApiServiceResponse
            Public Overridable Property Vehicles As IEnumerable(Of VehicleData)
        End Class
    End Namespace
End Namespace

VB.NET GetVehicleList 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.

GET /galaxy/vehicle/list HTTP/1.1 
Host: galaxymobile.api.client.prod.86degrees.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}