openapi: 3.0.3
info:
title: 'Transit Tracker'
description: ''
version: 1.0.0
servers:
-
url: 'https://api.transittracker.ca'
tags:
-
name: Agencies
description: ''
-
name: Alerts
description: ''
-
name: Endpoints
description: ''
-
name: Landing
description: 'GeoJSON ressources used on the landing page'
-
name: Link
description: ''
-
name: Regions
description: ''
-
name: Tags
description: ''
-
name: Trips
description: ''
-
name: Vehicles
description: ''
paths:
/v2/agencies:
get:
summary: ''
operationId: getV2Agencies
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n
\n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Agencies
security: []
'/v2/agencies/{agency_slug}':
get:
summary: ''
operationId: getV2AgenciesAgency_slug
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Agencies
security: []
parameters:
-
in: path
name: agency_slug
description: 'The slug of the agency.'
example: stm
required: true
schema:
type: string
/v2/alerts:
get:
summary: ''
operationId: getV2Alerts
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Alerts
security: []
'/v2/alerts/{alert}':
get:
summary: ''
operationId: getV2AlertsAlert
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Alerts
security: []
parameters:
-
in: path
name: alert
description: 'The alert.'
example: ut
required: true
schema:
type: string
'/v2/regions/{region}/alerts':
get:
summary: ''
operationId: getV2RegionsRegionAlerts
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Alerts
security: []
parameters:
-
in: path
name: region
description: 'The region.'
example: mtl
required: true
schema:
type: string
/v2/health:
get:
summary: ''
operationId: getV2Health
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Endpoints
security: []
/v2/landing:
get:
summary: ''
operationId: getV2Landing
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Landing
security: []
/v2/landing/vehicles:
get:
summary: ''
operationId: getV2LandingVehicles
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Landing
security: []
/v2/links:
get:
summary: ''
operationId: getV2Links
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Link
security: []
'/v2/links/{link}':
get:
summary: ''
operationId: getV2LinksLink
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Link
security: []
parameters:
-
in: path
name: link
description: 'The link.'
example: aut
required: true
schema:
type: string
/v2/regions:
get:
summary: ''
operationId: getV2Regions
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Regions
security: []
'/v2/regions/{region_slug}':
get:
summary: ''
operationId: getV2RegionsRegion_slug
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Regions
security: []
parameters:
-
in: path
name: region_slug
description: 'The slug of the region.'
example: mtl
required: true
schema:
type: string
/v2/tags:
get:
summary: ''
operationId: getV2Tags
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Tags
security: []
'/v2/tags/{tag_id}':
get:
summary: ''
operationId: getV2TagsTag_id
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Tags
security: []
parameters:
-
in: path
name: tag_id
description: 'The ID of the tag.'
example: 1
required: true
schema:
type: integer
'/v2/agencies/{agencySlug}/trips/{tripId}/blocks':
get:
summary: 'Related trips / Voyages liƩes'
operationId: relatedTripsVoyagesLies
description: 'Only available for some agencies. Disponible pour quelques agences seulement.'
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Trips
security: []
parameters:
-
in: path
name: agencySlug
description: ''
example: stm
required: true
schema:
type: string
-
in: path
name: tripId
description: ''
example: '951057'
required: true
schema:
type: string
'/v2/agencies/{agencySlug}/shapes/{shapeId}':
get:
summary: 'GeoJSON Shape'
operationId: geoJSONShape
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Trips
security: []
parameters:
-
in: path
name: agencySlug
description: ''
example: stm
required: true
schema:
type: string
-
in: path
name: shapeId
description: ''
example: nulla
required: true
schema:
type: '1000238'
'/v2/agencies/{agency_slug}/vehicles':
get:
summary: ''
operationId: getV2AgenciesAgency_slugVehicles
description: ''
parameters:
-
in: query
name: geojson
description: 'Include a GeoJSON `FeatureCollection` to the response. Defaults to true.'
example: false
required: false
schema:
type: boolean
description: 'Include a GeoJSON `FeatureCollection` to the response. Defaults to true.'
example: false
nullable: false
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Vehicles
security: []
parameters:
-
in: path
name: agency_slug
description: 'The slug of the agency.'
example: stm
required: true
schema:
type: string
'/v2/agencies/{agency}/vehicles.geojson':
get:
summary: ''
operationId: getV2AgenciesAgencyVehiclesGeojson
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Vehicles
security: []
parameters:
-
in: path
name: agency
description: 'The agency.'
example: stm
required: true
schema:
type: string
'/v2/agencies/{agency_slug}/vehicles/{vehicle}':
get:
summary: ''
operationId: getV2AgenciesAgency_slugVehiclesVehicle
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Vehicles
security: []
parameters:
-
in: path
name: agency_slug
description: 'The slug of the agency.'
example: stm
required: true
schema:
type: string
-
in: path
name: vehicle
description: 'The vehicle.'
example: sit
required: true
schema:
type: string
'/v2/agencies/{agency_slug}/vehicles.geojson/{vehicle}':
get:
summary: ''
operationId: getV2AgenciesAgency_slugVehiclesGeojsonVehicle
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Vehicles
security: []
parameters:
-
in: path
name: agency_slug
description: 'The slug of the agency.'
example: stm
required: true
schema:
type: string
-
in: path
name: vehicle
description: ''
example: aut
required: true
schema:
type: string
/v2/vehicles:
get:
summary: ''
operationId: getV2Vehicles
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Vehicles
security: []
/v2/vehicles.geojson:
get:
summary: ''
operationId: getV2VehiclesGeojson
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Vehicles
security: []
'/v2/vehicles/{vehicle_id}':
get:
summary: ''
operationId: getV2VehiclesVehicle_id
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Vehicles
security: []
parameters:
-
in: path
name: vehicle_id
description: 'The ID of the vehicle.'
example: 1
required: true
schema:
type: integer
'/v2/vehicles.geojson/{vehicle_id}':
get:
summary: ''
operationId: getV2VehiclesGeojsonVehicle_id
description: ''
parameters: []
responses:
503:
description: ''
content:
text/plain:
schema:
type: string
example: "\n\n \n \n \n\n Service Unavailable\n\n \n \n \n\n \n \n \n \n \n
\n 503
\n\n
\n Service Unavailable
\n
\n \n\n"
tags:
- Vehicles
security: []
parameters:
-
in: path
name: vehicle_id
description: 'The ID of the vehicle.'
example: 1
required: true
schema:
type: integer