From 374f0fb55baf0415d7d5f13173ca01eab3567ec3 Mon Sep 17 00:00:00 2001 From: Fabian Vogler Date: Mon, 25 Mar 2024 08:53:16 +0100 Subject: [PATCH] Remove unsupported parameters (direct, sleeper, etc.) from docs #216 --- lib/Transport/Application.php | 30 ------------------------------ test/fixtures/swagger.json | 30 ------------------------------ web/docs.html | 30 ------------------------------ 3 files changed, 90 deletions(-) diff --git a/lib/Transport/Application.php b/lib/Transport/Application.php index e32dda2..898684b 100644 --- a/lib/Transport/Application.php +++ b/lib/Transport/Application.php @@ -334,36 +334,6 @@ public function __construct() * description="0 - 10. Allows pagination of connections. Zero-based, so first page is 0, second is 1, third is 2 and so on.", * type="integer" * ), - * @SWG\Parameter( - * name="direct", - * in="query", - * description="defaults to `0`, if set to `1` only direct connections are allowed", - * type="integer" - * ), - * @SWG\Parameter( - * name="sleeper", - * in="query", - * description="defaults to `0`, if set to `1` only night trains containing beds are allowed, implies `direct=1`", - * type="integer" - * ), - * @SWG\Parameter( - * name="couchette", - * in="query", - * description="defaults to `0`, if set to `1` only night trains containing couchettes are allowed, implies `direct=1`", - * type="integer" - * ), - * @SWG\Parameter( - * name="bike", - * in="query", - * description="defaults to `0`, if set to `1` only trains allowing the transport of bicycles are allowed", - * type="integer" - * ), - * @SWG\Parameter( - * name="accessibility", - * in="query", - * description="Possible values are `independent_boarding`, `assisted_boarding`, and `advanced_notice`", - * type="string" - * ), * @SWG\Response( * response="200", * description="A list of connections", diff --git a/test/fixtures/swagger.json b/test/fixtures/swagger.json index 8ffb407..f82c215 100644 --- a/test/fixtures/swagger.json +++ b/test/fixtures/swagger.json @@ -129,36 +129,6 @@ "in": "query", "description": "0 - 10. Allows pagination of connections. Zero-based, so first page is 0, second is 1, third is 2 and so on.", "type": "integer" - }, - { - "name": "direct", - "in": "query", - "description": "defaults to `0`, if set to `1` only direct connections are allowed", - "type": "integer" - }, - { - "name": "sleeper", - "in": "query", - "description": "defaults to `0`, if set to `1` only night trains containing beds are allowed, implies `direct=1`", - "type": "integer" - }, - { - "name": "couchette", - "in": "query", - "description": "defaults to `0`, if set to `1` only night trains containing couchettes are allowed, implies `direct=1`", - "type": "integer" - }, - { - "name": "bike", - "in": "query", - "description": "defaults to `0`, if set to `1` only trains allowing the transport of bicycles are allowed", - "type": "integer" - }, - { - "name": "accessibility", - "in": "query", - "description": "Possible values are `independent_boarding`, `assisted_boarding`, and `advanced_notice`", - "type": "string" } ], "responses": { diff --git a/web/docs.html b/web/docs.html index 1a8fec4..a860485 100644 --- a/web/docs.html +++ b/web/docs.html @@ -237,36 +237,6 @@

Request Parameters

0 - 3. Allows pagination of connections. Zero-based, so first page is 0, second is 1, third is 2 and so on. 3 - - direct - optional - defaults to 0, if set to 1 only direct connections are allowed - 1 - - - sleeper - optional - defaults to 0, if set to 1 only night trains containing beds are allowed, implies direct=1 - 1 - - - couchette - optional - defaults to 0, if set to 1 only night trains containing couchettes are allowed, implies direct=1 - 1 - - - bike - optional - defaults to 0, if set to 1 only trains allowing the transport of bicycles are allowed - 1 - - - accessibility - optional - Possible values are independent_boarding, assisted_boarding, and advanced_notice - independent_boarding -