Back

GET api/V1/Fleet/Consist/All

Returns all consists data.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

All consists.

Response Formats

application/json, text/json

Sample:
{
  "Metadata": {
    "TimeStamp": "sample string 1",
    "ErrorCode": "sample string 2",
    "ErrorMessage": "sample string 3"
  },
  "AllConsists": {
    "Consists": [
      {
        "Number": 1,
        "CoachCount": 2,
        "EngineNumber": "sample string 3",
        "Lineup": [
          {
            "Type": "sample string 1",
            "Order": 2,
            "Number": "sample string 3"
          },
          {
            "Type": "sample string 1",
            "Order": 2,
            "Number": "sample string 3"
          }
        ],
        "RemainingTrip": [
          {
            "Number": "sample string 1",
            "Corridor": "sample string 2",
            "StartTime": "sample string 3",
            "EndTime": "sample string 4",
            "FirstStop": "sample string 5",
            "LastStop": "sample string 6",
            "InService": true
          },
          {
            "Number": "sample string 1",
            "Corridor": "sample string 2",
            "StartTime": "sample string 3",
            "EndTime": "sample string 4",
            "FirstStop": "sample string 5",
            "LastStop": "sample string 6",
            "InService": true
          }
        ]
      },
      {
        "Number": 1,
        "CoachCount": 2,
        "EngineNumber": "sample string 3",
        "Lineup": [
          {
            "Type": "sample string 1",
            "Order": 2,
            "Number": "sample string 3"
          },
          {
            "Type": "sample string 1",
            "Order": 2,
            "Number": "sample string 3"
          }
        ],
        "RemainingTrip": [
          {
            "Number": "sample string 1",
            "Corridor": "sample string 2",
            "StartTime": "sample string 3",
            "EndTime": "sample string 4",
            "FirstStop": "sample string 5",
            "LastStop": "sample string 6",
            "InService": true
          },
          {
            "Number": "sample string 1",
            "Corridor": "sample string 2",
            "StartTime": "sample string 3",
            "EndTime": "sample string 4",
            "FirstStop": "sample string 5",
            "LastStop": "sample string 6",
            "InService": true
          }
        ]
      }
    ]
  }
}

text/xml

Sample:
<Result>
  <Metadata TimeStamp="sample string 1" ErrorCode="sample string 2" ErrorMessage="sample string 3" />
  <AllConsists>
    <Consists Number="1" CoachCount="2" EngineNumber="sample string 3">
      <Lineup Type="sample string 1" Order="2" Number="sample string 3" />
      <Lineup Type="sample string 1" Order="2" Number="sample string 3" />
      <RemainingTrip Number="sample string 1" Corridor="sample string 2" StartTime="sample string 3" EndTime="sample string 4" FirstStop="sample string 5" LastStop="sample string 6" InService="true" />
      <RemainingTrip Number="sample string 1" Corridor="sample string 2" StartTime="sample string 3" EndTime="sample string 4" FirstStop="sample string 5" LastStop="sample string 6" InService="true" />
    </Consists>
    <Consists Number="1" CoachCount="2" EngineNumber="sample string 3">
      <Lineup Type="sample string 1" Order="2" Number="sample string 3" />
      <Lineup Type="sample string 1" Order="2" Number="sample string 3" />
      <RemainingTrip Number="sample string 1" Corridor="sample string 2" StartTime="sample string 3" EndTime="sample string 4" FirstStop="sample string 5" LastStop="sample string 6" InService="true" />
      <RemainingTrip Number="sample string 1" Corridor="sample string 2" StartTime="sample string 3" EndTime="sample string 4" FirstStop="sample string 5" LastStop="sample string 6" InService="true" />
    </Consists>
  </AllConsists>
</Result>