GET api/Stops

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Stop
NameDescriptionTypeAdditional information
id

integer

None.

Stop_Name

string

Required

String length: inclusive between 0 and 100

Latitude

decimal number

None.

Longitude

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "Stop_Name": "sample string 2",
    "Latitude": 3.0,
    "Longitude": 1.0
  },
  {
    "id": 1,
    "Stop_Name": "sample string 2",
    "Latitude": 3.0,
    "Longitude": 1.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfStop xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AVLWeb.Models">
  <Stop>
    <Latitude>3</Latitude>
    <Longitude>1</Longitude>
    <Stop_Name>sample string 2</Stop_Name>
    <id>1</id>
  </Stop>
  <Stop>
    <Latitude>3</Latitude>
    <Longitude>1</Longitude>
    <Stop_Name>sample string 2</Stop_Name>
    <id>1</id>
  </Stop>
</ArrayOfStop>