OneBusAway · Example Payload

Get_Api_Where_Trip Details_Tripid.Json

default

Get_Api_Where_Trip Details_Tripid.Json is an example object payload from OneBusAway, with 7 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparameters

Example Payload

Raw ↑
{
  "operationId": "get_api_where_trip-details_tripID.json",
  "method": "GET",
  "path": "/api/where/trip-details/{tripID}.json",
  "summary": "Retrieve Trip Details",
  "description": "",
  "tags": [
    "default"
  ],
  "parameters": [
    {
      "in": "path",
      "name": "tripID",
      "required": true,
      "schema": {
        "type": "string"
      },
      "description": "ID of the trip to retrieve details for."
    },
    {
      "in": "query",
      "name": "serviceDate",
      "required": false,
      "schema": {
        "type": "integer",
        "format": "int64"
      },
      "description": "Service date for the trip as Unix time in milliseconds (optional)."
    },
    {
      "in": "query",
      "name": "includeTrip",
      "required": false,
      "schema": {
        "type": "boolean"
      },
      "description": "Whether to include the full trip element in the references section (defaults to true)."
    },
    {
      "in": "query",
      "name": "includeSchedule",
      "required": false,
      "schema": {
        "type": "boolean"
      },
      "description": "Whether to include the full schedule element in the tripDetails section (defaults to true)."
    },
    {
      "in": "query",
      "name": "includeStatus",
      "required": false,
      "schema": {
        "type": "boolean"
      },
      "description": "Whether to include the full status element in the tripDetails section (defaults to true)."
    },
    {
      "in": "query",
      "name": "time",
      "required": false,
      "schema": {
        "type": "integer",
        "format": "int64"
      },
      "description": "Time parameter to query the system at a specific time (optional)."
    }
  ]
}