POST api/Locations/GetLocations
Request Information
URI Parameters
None.
Body Parameters
LocationPeriodDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"StartDate": "2025-12-11T05:27:57.8493329+02:00",
"EndDate": "2025-12-11T05:27:57.8493329+02:00"
}
application/xml, text/xml
Sample:
<LocationPeriodDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSWebAPI.Models.Locations"> <EndDate>2025-12-11T05:27:57.8493329+02:00</EndDate> <StartDate>2025-12-11T05:27:57.8493329+02:00</StartDate> </LocationPeriodDTO>
application/x-www-form-urlencoded
Sample:
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:27:57.8493329+02:00",
"ModifiedUtc": "2025-12-11T05:27:57.8493329+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:27:57.8493329+02:00",
"ModifiedUtc": "2025-12-11T05:27:57.8493329+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:27:57.8493329+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:27:57.8493329+02:00</ModifiedUtc>
<StatusDesc>sample string 11</StatusDesc>
</LocationDTO>
<LocationDTO>
<CreatedUtc>2025-12-11T05:27:57.8493329+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:27:57.8493329+02:00</ModifiedUtc>
<StatusDesc>sample string 11</StatusDesc>
</LocationDTO>
</ArrayOfLocationDTO>