GET api/location/GetLocation

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Location
NameDescriptionTypeAdditional information
LocationId

integer

None.

Description

string

None.

PracticeId

integer

None.

Address

string

None.

LocationGPS

DbGeography

None.

LocationGeoCode

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "LocationId": 1,
    "Description": "sample string 2",
    "PracticeId": 1,
    "Address": "sample string 3",
    "LocationGPS": null,
    "LocationGeoCode": "sample string 4"
  },
  {
    "LocationId": 1,
    "Description": "sample string 2",
    "PracticeId": 1,
    "Address": "sample string 3",
    "LocationGPS": null,
    "LocationGeoCode": "sample string 4"
  }
]

text/html

Sample:
[{"LocationId":1,"Description":"sample string 2","PracticeId":1,"Address":"sample string 3","LocationGPS":null,"LocationGeoCode":"sample string 4"},{"LocationId":1,"Description":"sample string 2","PracticeId":1,"Address":"sample string 3","LocationGPS":null,"LocationGeoCode":"sample string 4"}]

application/xml, text/xml

Sample:
<ArrayOfLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetAPI.DataModel">
  <Location>
    <Address>sample string 3</Address>
    <Description>sample string 2</Description>
    <LocationGPS xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Spatial" i:nil="true" />
    <LocationGeoCode>sample string 4</LocationGeoCode>
    <LocationId>1</LocationId>
    <PracticeId>1</PracticeId>
  </Location>
  <Location>
    <Address>sample string 3</Address>
    <Description>sample string 2</Description>
    <LocationGPS xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Spatial" i:nil="true" />
    <LocationGeoCode>sample string 4</LocationGeoCode>
    <LocationId>1</LocationId>
    <PracticeId>1</PracticeId>
  </Location>
</ArrayOfLocation>