mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
adapt openapi.yaml
[skip ci]
This commit is contained in:
parent
7d10f409ef
commit
206e709e6a
1 changed files with 25 additions and 25 deletions
|
@ -1,10 +1,10 @@
|
||||||
openapi: 3.0.3
|
openapi: 3.0.3
|
||||||
info:
|
info:
|
||||||
title: db-vendo-client
|
title: db-vendo-client
|
||||||
description: Schema for db-vendo-client/hafas-client's Friendy Public Transport Format API
|
description: Schema for db-vendo-client/hafas-rest-api's Friendy Public Transport Format REST API
|
||||||
contact:
|
contact:
|
||||||
url: https://github.com/public-transport/db-vendo-client
|
url: https://github.com/public-transport/db-vendo-client
|
||||||
version: 6
|
version: '6'
|
||||||
paths:
|
paths:
|
||||||
/stops/{id}:
|
/stops/{id}:
|
||||||
get:
|
get:
|
||||||
|
@ -69,7 +69,7 @@ paths:
|
||||||
format: date-time
|
format: date-time
|
||||||
- name: direction
|
- name: direction
|
||||||
in: query
|
in: query
|
||||||
description: Filter departures by direction.
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: duration
|
- name: duration
|
||||||
|
@ -85,7 +85,7 @@ paths:
|
||||||
type: integer
|
type: integer
|
||||||
- name: linesOfStops
|
- name: linesOfStops
|
||||||
in: query
|
in: query
|
||||||
description: Parse & return lines of each stop/station?
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -149,7 +149,7 @@ paths:
|
||||||
format: date-time
|
format: date-time
|
||||||
- name: direction
|
- name: direction
|
||||||
in: query
|
in: query
|
||||||
description: Filter departures by direction.
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: duration
|
- name: duration
|
||||||
|
@ -165,7 +165,7 @@ paths:
|
||||||
type: integer
|
type: integer
|
||||||
- name: linesOfStops
|
- name: linesOfStops
|
||||||
in: query
|
in: query
|
||||||
description: Parse & return lines of each stop/station?
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -308,7 +308,7 @@ paths:
|
||||||
default: 0
|
default: 0
|
||||||
- name: accessibility
|
- name: accessibility
|
||||||
in: query
|
in: query
|
||||||
description: '`partial` or `complete`. – Default: *not accessible*'
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: bike
|
- name: bike
|
||||||
|
@ -319,13 +319,13 @@ paths:
|
||||||
default: false
|
default: false
|
||||||
- name: startWithWalking
|
- name: startWithWalking
|
||||||
in: query
|
in: query
|
||||||
description: Consider walking to nearby stations at the beginning of a journey?
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
- name: walkingSpeed
|
- name: walkingSpeed
|
||||||
in: query
|
in: query
|
||||||
description: '`slow`, `normal` or `fast`.'
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: normal
|
default: normal
|
||||||
|
@ -335,25 +335,25 @@ paths:
|
||||||
- fast
|
- fast
|
||||||
- name: tickets
|
- name: tickets
|
||||||
in: query
|
in: query
|
||||||
description: Return information about available tickets?
|
description: Return information about available tickets? only supported for /journeys/{ref}
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- name: polylines
|
- name: polylines
|
||||||
in: query
|
in: query
|
||||||
description: Fetch & parse a shape for each journey leg?
|
description: Fetch & parse a shape for each journey leg? only supported for /journeys/{ref}
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- name: subStops
|
- name: subStops
|
||||||
in: query
|
in: query
|
||||||
description: Parse & return sub-stops of stations?
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
- name: entrances
|
- name: entrances
|
||||||
in: query
|
in: query
|
||||||
description: Parse & return entrances of stops/stations?
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
@ -461,7 +461,7 @@ paths:
|
||||||
default: true
|
default: true
|
||||||
- name: polyline
|
- name: polyline
|
||||||
in: query
|
in: query
|
||||||
description: Fetch & parse the geographic shape of the trip?
|
description: Fetch & parse the geographic shape of the trip? (does not work for RIS trip ids from boards of db profile)
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -527,7 +527,7 @@ paths:
|
||||||
default: false
|
default: false
|
||||||
- name: linesOfStops
|
- name: linesOfStops
|
||||||
in: query
|
in: query
|
||||||
description: Parse & expose lines at each stop/station?
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -652,25 +652,25 @@ paths:
|
||||||
default: false
|
default: false
|
||||||
- name: tickets
|
- name: tickets
|
||||||
in: query
|
in: query
|
||||||
description: Return information about available tickets?
|
description: Return information about available tickets? mutually exclusive with polylines
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- name: polylines
|
- name: polylines
|
||||||
in: query
|
in: query
|
||||||
description: Fetch & parse a shape for each journey leg?
|
description: Fetch & parse a shape for each journey leg? mutually exclusive with tickets
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- name: subStops
|
- name: subStops
|
||||||
in: query
|
in: query
|
||||||
description: Parse & return sub-stops of stations?
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
- name: entrances
|
- name: entrances
|
||||||
in: query
|
in: query
|
||||||
description: Parse & return entrances of stops/stations?
|
description: not supported
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
@ -1962,7 +1962,7 @@ components:
|
||||||
default: '''none'''
|
default: '''none'''
|
||||||
type: string
|
type: string
|
||||||
tickets:
|
tickets:
|
||||||
description: return tickets?
|
description: return tickets? only available with some profiles
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
polylines:
|
polylines:
|
||||||
|
@ -2142,19 +2142,19 @@ components:
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
polylines:
|
polylines:
|
||||||
description: return a shape for each leg?
|
description: return a shape for each leg? mutually exclusive with tickets
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
tickets:
|
tickets:
|
||||||
description: return tickets? only available with some profiles
|
description: return tickets? mutually exclusive with polylines
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
subStops:
|
subStops:
|
||||||
description: parse & expose sub-stops of stations?
|
description: not supported
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
entrances:
|
entrances:
|
||||||
description: parse & expose entrances of stops/stations?
|
description: not supported
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
remarks:
|
remarks:
|
||||||
|
@ -2464,4 +2464,4 @@ components:
|
||||||
default: true
|
default: true
|
||||||
externalDocs:
|
externalDocs:
|
||||||
description: human-readable docs
|
description: human-readable docs
|
||||||
url: http://example.org
|
url: https://github.com/public-transport/db-vendo-client/blob/main/docs/api.md
|
||||||
|
|
Loading…
Add table
Reference in a new issue