GET api/Locations/GetAllLocations
Get ALL Locations
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of LocationDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| LocationName | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| LocationTypeId | integer |
None. |
|
| LocationGroupId | integer |
None. |
|
| LocationGroupCode | string |
None. |
|
| LocationTypeName | string |
None. |
|
| CreatedUtc | date |
None. |
|
| ModifiedUtc | date |
None. |
|
| StatusDesc | string |
None. |
|
| IsDeleted | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"LocationName": "sample string 2",
"Latitude": 3.1,
"Longitude": 4.1,
"LocationTypeId": 5,
"LocationGroupId": 6,
"LocationGroupCode": "sample string 7",
"LocationTypeName": "sample string 8",
"CreatedUtc": "2025-12-11T05:28:59.5775118+02:00",
"ModifiedUtc": "2025-12-11T05:28:59.5775118+02:00",
"StatusDesc": "sample string 11",
"IsDeleted": true
},
{
"Id": 1,
"LocationName": "sample string 2",
"Latitude": 3.1,
"Longitude": 4.1,
"LocationTypeId": 5,
"LocationGroupId": 6,
"LocationGroupCode": "sample string 7",
"LocationTypeName": "sample string 8",
"CreatedUtc": "2025-12-11T05:28:59.5775118+02:00",
"ModifiedUtc": "2025-12-11T05:28:59.5775118+02:00",
"StatusDesc": "sample string 11",
"IsDeleted": true
}
]
application/xml, text/xml
Sample:
<ArrayOfLocationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSWebAPI.Models.Locations">
<LocationDTO>
<CreatedUtc>2025-12-11T05:28:59.5775118+02:00</CreatedUtc>
<Id>1</Id>
<IsDeleted>true</IsDeleted>
<Latitude>3.1</Latitude>
<LocationGroupCode>sample string 7</LocationGroupCode>
<LocationGroupId>6</LocationGroupId>
<LocationName>sample string 2</LocationName>
<LocationTypeId>5</LocationTypeId>
<LocationTypeName>sample string 8</LocationTypeName>
<Longitude>4.1</Longitude>
<ModifiedUtc>2025-12-11T05:28:59.5775118+02:00</ModifiedUtc>
<StatusDesc>sample string 11</StatusDesc>
</LocationDTO>
<LocationDTO>
<CreatedUtc>2025-12-11T05:28:59.5775118+02:00</CreatedUtc>
<Id>1</Id>
<IsDeleted>true</IsDeleted>
<Latitude>3.1</Latitude>
<LocationGroupCode>sample string 7</LocationGroupCode>
<LocationGroupId>6</LocationGroupId>
<LocationName>sample string 2</LocationName>
<LocationTypeId>5</LocationTypeId>
<LocationTypeName>sample string 8</LocationTypeName>
<Longitude>4.1</Longitude>
<ModifiedUtc>2025-12-11T05:28:59.5775118+02:00</ModifiedUtc>
<StatusDesc>sample string 11</StatusDesc>
</LocationDTO>
</ArrayOfLocationDTO>