Get the rides for a traject

Request Information

Parameters

NameDescriptionAdditional information
id The traject Id

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "Uri": "/trajects/4/rides/2",
    "Id": 2,
    "TrajectUri": "/trajects/4",
    "TrajectId": 4,
    "Name": "sample string 5",
    "StartTime": "2025-12-08T00:56:23.39456+01:00",
    "EndTime": "2025-12-08T00:56:23.39456+01:00",
    "PriorityInTraject": 8,
    "CustomFields": [
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      }
    ]
  },
  {
    "Uri": "/trajects/4/rides/2",
    "Id": 2,
    "TrajectUri": "/trajects/4",
    "TrajectId": 4,
    "Name": "sample string 5",
    "StartTime": "2025-12-08T00:56:23.39456+01:00",
    "EndTime": "2025-12-08T00:56:23.39456+01:00",
    "PriorityInTraject": 8,
    "CustomFields": [
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      }
    ]
  },
  {
    "Uri": "/trajects/4/rides/2",
    "Id": 2,
    "TrajectUri": "/trajects/4",
    "TrajectId": 4,
    "Name": "sample string 5",
    "StartTime": "2025-12-08T00:56:23.39456+01:00",
    "EndTime": "2025-12-08T00:56:23.39456+01:00",
    "PriorityInTraject": 8,
    "CustomFields": [
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "PopUpOnTablet": true
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfRideRestGet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RideRestGet>
    <Name>sample string 5</Name>
    <StartTime>2025-12-08T00:56:23.39456+01:00</StartTime>
    <EndTime>2025-12-08T00:56:23.39456+01:00</EndTime>
    <PriorityInTraject>8</PriorityInTraject>
    <CustomFields>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
    </CustomFields>
    <Uri>/trajects/4/rides/2</Uri>
    <Id>2</Id>
    <TrajectUri>/trajects/4</TrajectUri>
    <TrajectId>4</TrajectId>
  </RideRestGet>
  <RideRestGet>
    <Name>sample string 5</Name>
    <StartTime>2025-12-08T00:56:23.39456+01:00</StartTime>
    <EndTime>2025-12-08T00:56:23.39456+01:00</EndTime>
    <PriorityInTraject>8</PriorityInTraject>
    <CustomFields>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
    </CustomFields>
    <Uri>/trajects/4/rides/2</Uri>
    <Id>2</Id>
    <TrajectUri>/trajects/4</TrajectUri>
    <TrajectId>4</TrajectId>
  </RideRestGet>
  <RideRestGet>
    <Name>sample string 5</Name>
    <StartTime>2025-12-08T00:56:23.39456+01:00</StartTime>
    <EndTime>2025-12-08T00:56:23.39456+01:00</EndTime>
    <PriorityInTraject>8</PriorityInTraject>
    <CustomFields>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
      <CustomFieldRest>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
        <PopUpOnTablet>true</PopUpOnTablet>
      </CustomFieldRest>
    </CustomFields>
    <Uri>/trajects/4/rides/2</Uri>
    <Id>2</Id>
    <TrajectUri>/trajects/4</TrajectUri>
    <TrajectId>4</TrajectId>
  </RideRestGet>
</ArrayOfRideRestGet>