POST api/GetAllCurrentLocations

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

GetAllCurrentLocationsResponse
NameDescriptionTypeAdditional information
AllLocations

Collection of CurrentLocationDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "AllLocations": [
    {
      "CurrentLocationId": 1,
      "DriverId": 1,
      "IsOnRide": true,
      "CurrentLocationLatLng": "sample string 2",
      "CurrentLocationAddress": "sample string 3",
      "CurrentLocationDateTime": "sample string 4",
      "IsOnline": true,
      "OnRideId": 1,
      "LastOnlineDateTime": "sample string 5"
    },
    {
      "CurrentLocationId": 1,
      "DriverId": 1,
      "IsOnRide": true,
      "CurrentLocationLatLng": "sample string 2",
      "CurrentLocationAddress": "sample string 3",
      "CurrentLocationDateTime": "sample string 4",
      "IsOnline": true,
      "OnRideId": 1,
      "LastOnlineDateTime": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<GetAllCurrentLocationsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Response">
  <AllLocations>
    <CurrentLocationDetails>
      <CurrentLocationAddress>sample string 3</CurrentLocationAddress>
      <CurrentLocationDateTime>sample string 4</CurrentLocationDateTime>
      <CurrentLocationId>1</CurrentLocationId>
      <CurrentLocationLatLng>sample string 2</CurrentLocationLatLng>
      <DriverId>1</DriverId>
      <IsOnRide>true</IsOnRide>
      <IsOnline>true</IsOnline>
      <LastOnlineDateTime>sample string 5</LastOnlineDateTime>
      <OnRideId>1</OnRideId>
    </CurrentLocationDetails>
    <CurrentLocationDetails>
      <CurrentLocationAddress>sample string 3</CurrentLocationAddress>
      <CurrentLocationDateTime>sample string 4</CurrentLocationDateTime>
      <CurrentLocationId>1</CurrentLocationId>
      <CurrentLocationLatLng>sample string 2</CurrentLocationLatLng>
      <DriverId>1</DriverId>
      <IsOnRide>true</IsOnRide>
      <IsOnline>true</IsOnline>
      <LastOnlineDateTime>sample string 5</LastOnlineDateTime>
      <OnRideId>1</OnRideId>
    </CurrentLocationDetails>
  </AllLocations>
</GetAllCurrentLocationsResponse>