GET api/FareTypes

Gets the list of the different available fare types.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Returns the list of fare types (id, code and name)

Collection of FareType
NameDescriptionTypeAdditional information
ID

Gets or sets the ID of the fare type.

integer

None.

Code

Gets or sets the code that can be used to identify the fare type.

string

None.

Name

Gets or sets the friendly name of the fare type.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "code": "sample string 2",
    "name": "sample string 3"
  },
  {
    "id": 1,
    "code": "sample string 2",
    "name": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfFareType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
  <FareType>
    <Code>sample string 2</Code>
    <ID>1</ID>
    <Name>sample string 3</Name>
  </FareType>
  <FareType>
    <Code>sample string 2</Code>
    <ID>1</ID>
    <Name>sample string 3</Name>
  </FareType>
</ArrayOfFareType>