openapi: 3.0.3 info: title: 'Transit Tracker' description: '' version: 1.0.0 servers: - url: 'https://api.transittracker.ca' paths: /v2/agencies: get: summary: '' operationId: getV2Agencies description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Agencies security: [] '/v2/agencies/{agency_slug}': get: summary: '' operationId: getV2AgenciesAgency_slug description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' 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: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Alerts security: [] '/v2/alerts/{alert_id}': get: summary: '' operationId: getV2AlertsAlert_id description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Alerts security: [] parameters: - in: path name: alert_id description: 'The ID of the alert.' example: 2 required: true schema: type: integer '/v2/regions/{region_slug}/alerts': get: summary: '' operationId: getV2RegionsRegion_slugAlerts description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Alerts security: [] parameters: - in: path name: region_slug description: 'The slug of the region.' example: mtl required: true schema: type: string /v2/health: get: summary: '' operationId: getV2Health description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Endpoints security: [] '/v2/agencies/{agencySlug}/trips/{tripId}/blocks': get: summary: '' operationId: getV2AgenciesAgencySlugTripsTripIdBlocks description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Endpoints security: [] parameters: - in: path name: agencySlug description: '' example: stm required: true schema: type: string - in: path name: tripId description: '' example: deleniti required: true schema: type: string '/v2/agencies/{agencySlug}/shapes/{shapeId}': get: summary: '' operationId: getV2AgenciesAgencySlugShapesShapeId description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Endpoints security: [] parameters: - in: path name: agencySlug description: '' example: stm required: true schema: type: string - in: path name: shapeId description: '' example: dolorem required: true schema: type: string /v2/landing: get: summary: '' operationId: getV2Landing description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Landing security: [] /v2/landing/vehicles: get: summary: '' operationId: getV2LandingVehicles description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Landing security: [] /v2/links: get: summary: '' operationId: getV2Links description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Link security: [] '/v2/links/{link_id}': get: summary: '' operationId: getV2LinksLink_id description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Link security: [] parameters: - in: path name: link_id description: 'The ID of the link.' example: 1 required: true schema: type: integer /v2/regions: get: summary: '' operationId: getV2Regions description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Regions security: [] '/v2/regions/{region_slug}': get: summary: '' operationId: getV2RegionsRegion_slug description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' 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: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Tags security: [] '/v2/tags/{tag_id}': get: summary: '' operationId: getV2TagsTag_id description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Tags security: [] parameters: - in: path name: tag_id description: 'The ID of the tag.' example: 1 required: true schema: type: integer '/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 - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' 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_slug}/vehicles/{vehicle}': get: summary: '' operationId: getV2AgenciesAgency_slugVehiclesVehicle description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' 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: adipisci required: true schema: type: string /v2/vehicles: get: summary: '' operationId: getV2Vehicles description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Vehicles security: [] '/v2/vehicles/{vehicle_id}': get: summary: '' operationId: getV2VehiclesVehicle_id description: '' parameters: - in: header name: Accept-Language description: '' example: en schema: type: string responses: 503: description: '' content: application/json: schema: type: object example: message: 'Service Unavailable' properties: message: type: string example: 'Service Unavailable' tags: - Vehicles security: [] parameters: - in: path name: vehicle_id description: 'The ID of the vehicle.' example: 1 required: true schema: type: integer 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: Vehicles description: ''