GET api/Travellers
Gets all Travellers.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Travellers
Collection of Traveller| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Gets or sets the ID of the user profile. |
integer |
None. |
| name |
Gets or sets the name of the user. |
string |
None. |
| profilePic |
Gets or sets the profile picture URL of the user. |
string |
None. |
| batteryPercentage |
Gets or sets the battery percentage of the device. |
integer |
None. |
| coordinates |
Gets or sets the location of the user using latitude and longitude. |
Location |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"name": "sample string 2",
"profilePic": "sample string 3",
"batteryPercentage": 4,
"coordinates": {
"latitude": 1.1,
"longitude": 2.1
}
},
{
"id": 1,
"name": "sample string 2",
"profilePic": "sample string 3",
"batteryPercentage": 4,
"coordinates": {
"latitude": 1.1,
"longitude": 2.1
}
}
]
application/xml, text/xml
Sample:
<ArrayOfTraveller xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
<Traveller>
<batteryPercentage>4</batteryPercentage>
<coordinates>
<latitude>1.1</latitude>
<longitude>2.1</longitude>
</coordinates>
<id>1</id>
<name>sample string 2</name>
<profilePic>sample string 3</profilePic>
</Traveller>
<Traveller>
<batteryPercentage>4</batteryPercentage>
<coordinates>
<latitude>1.1</latitude>
<longitude>2.1</longitude>
</coordinates>
<id>1</id>
<name>sample string 2</name>
<profilePic>sample string 3</profilePic>
</Traveller>
</ArrayOfTraveller>