POST api/GSL
Request Information
URI Parameters
None.
Body Parameters
Collection of GSLRequestDataModelName | Description | Type | Additional information |
---|---|---|---|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
vehicleName | string |
None. |
Request Formats
application/json, text/json
Sample:
[ { "Latitude": 1.1, "Longitude": 2.1, "vehicleName": "sample string 3" }, { "Latitude": 1.1, "Longitude": 2.1, "vehicleName": "sample string 3" } ]
application/xml, text/xml
Sample:
<ArrayOfGSLRequestDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Manager.WebAPI.Models"> <GSLRequestDataModel> <Latitude>1.1</Latitude> <Longitude>2.1</Longitude> <vehicleName>sample string 3</vehicleName> </GSLRequestDataModel> <GSLRequestDataModel> <Latitude>1.1</Latitude> <Longitude>2.1</Longitude> <vehicleName>sample string 3</vehicleName> </GSLRequestDataModel> </ArrayOfGSLRequestDataModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of GSLVehicleLocationDataModelName | Description | Type | Additional information |
---|---|---|---|
vehicleId | integer |
None. |
|
vehicleName | string |
None. |
|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
Speed | decimal number |
None. |
|
Course | decimal number |
None. |
|
Movement | boolean |
None. |
|
OTDistance | decimal number |
None. |
|
OTLatitude | decimal number |
None. |
|
OTLongitude | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[ { "vehicleId": 1, "vehicleName": "sample string 2", "Latitude": 3.1, "Longitude": 4.1, "Speed": 5.1, "Course": 6.1, "Movement": true, "OTDistance": 8.1, "OTLatitude": 9.1, "OTLongitude": 10.1 }, { "vehicleId": 1, "vehicleName": "sample string 2", "Latitude": 3.1, "Longitude": 4.1, "Speed": 5.1, "Course": 6.1, "Movement": true, "OTDistance": 8.1, "OTLatitude": 9.1, "OTLongitude": 10.1 } ]
application/xml, text/xml
Sample:
<ArrayOfGSLVehicleLocationDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Manager.WebAPI.Models"> <GSLVehicleLocationDataModel> <Course>6.1</Course> <Latitude>3.1</Latitude> <Longitude>4.1</Longitude> <Movement>true</Movement> <OTDistance>8.1</OTDistance> <OTLatitude>9.1</OTLatitude> <OTLongitude>10.1</OTLongitude> <Speed>5.1</Speed> <vehicleId>1</vehicleId> <vehicleName>sample string 2</vehicleName> </GSLVehicleLocationDataModel> <GSLVehicleLocationDataModel> <Course>6.1</Course> <Latitude>3.1</Latitude> <Longitude>4.1</Longitude> <Movement>true</Movement> <OTDistance>8.1</OTDistance> <OTLatitude>9.1</OTLatitude> <OTLongitude>10.1</OTLongitude> <Speed>5.1</Speed> <vehicleId>1</vehicleId> <vehicleName>sample string 2</vehicleName> </GSLVehicleLocationDataModel> </ArrayOfGSLVehicleLocationDataModel>