Skip to content

Commit

Permalink
Feed restrictions added (#250)
Browse files Browse the repository at this point in the history
* Fix Service example

* Fix reference

* Fix typos

* 21423: neverAllowFeeds and onlyAllowFeeds added.

* 21423: neverAllowFeeds and onlyAllowFeeds specs added in openapi file
  • Loading branch information
fersagui authored Jul 6, 2024
1 parent 557a25d commit 822b168
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 33 deletions.
28 changes: 28 additions & 0 deletions docs/specs/tripgo.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,17 @@ paths:
type: array
items:
type: string
- name: neverAllowFeeds
in: query
description: "**Only for public transport**. Service operator feed IDs to exclude. Results won't use the operators\
\ from these feeds. This applies to regular services, not limited services like school buses."
required: false
style: form
explode: false
schema:
type: array
items:
type: string
- name: onlyAllowOperators
in: query
description: "**Only for public transport**. Service operator IDs to allow. If the array has content, then\
Expand All @@ -818,6 +829,23 @@ paths:
type: array
items:
type: string
- name: onlyAllowFeeds
in: query
description: "**Only for public transport**. Service operator feed IDs to allow. If the array has content, then\
\ results will use ONLY these operators. This applies to regular services,\
\ not limited services like school buses. Can be used together with `onlyAllowModes`\
\ and then results will be restricted to only the operators from these feeds\
\ and only those modes. Can't be used together with `neverAllowFeeds`.\n
\ \n
\ **Warning**: If the provided feed IDs don't exist in that region, then\
\ this filter is ignored and not used during results filtering. Use with care. Safer option is `neverAllowFeeds`."
required: false
style: form
explode: false
schema:
type: array
items:
type: string
- name: onlyAllowAuthorities
in: query
description: "**Only for public transport**. Service authority IDs to allow. If the array has content, then\
Expand Down
Loading

0 comments on commit 822b168

Please sign in to comment.