GET api/AllTrains

Documentation for 'GetTokenAllTrains'.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "slno": 1,
    "trainid": "sample string 2",
    "trainname": "sample string 3"
  },
  {
    "slno": 1,
    "trainid": "sample string 2",
    "trainname": "sample string 3"
  },
  {
    "slno": 1,
    "trainid": "sample string 2",
    "trainname": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAllTrains xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainDco.Models">
  <AllTrains>
    <slno>1</slno>
    <trainid>sample string 2</trainid>
    <trainname>sample string 3</trainname>
  </AllTrains>
  <AllTrains>
    <slno>1</slno>
    <trainid>sample string 2</trainid>
    <trainname>sample string 3</trainname>
  </AllTrains>
  <AllTrains>
    <slno>1</slno>
    <trainid>sample string 2</trainid>
    <trainname>sample string 3</trainname>
  </AllTrains>
</ArrayOfAllTrains>