Skip to content

Commit

Permalink
Remove unsupported parameters (direct, sleeper, etc.) from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Mar 25, 2024
1 parent f574b72 commit 374f0fb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 90 deletions.
30 changes: 0 additions & 30 deletions lib/Transport/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 0 additions & 30 deletions test/fixtures/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
30 changes: 0 additions & 30 deletions web/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,36 +237,6 @@ <h4>Request Parameters</h4>
<td>0 - 3. Allows pagination of connections. Zero-based, so first page is&#160;0, second is&#160;1, third is&#160;2 and so on.</td>
<td>3</td>
</tr>
<tr>
<td><code>direct</code></td>
<td>optional</td>
<td>defaults to 0, if set to 1 only direct connections are allowed</td>
<td>1</td>
</tr>
<tr>
<td><code>sleeper</code></td>
<td>optional</td>
<td>defaults to 0, if set to 1 only night trains containing beds are allowed, implies direct=1</td>
<td>1</td>
</tr>
<tr>
<td><code>couchette</code></td>
<td>optional</td>
<td>defaults to 0, if set to 1 only night trains containing couchettes are allowed, implies direct=1</td>
<td>1</td>
</tr>
<tr>
<td><code>bike</code></td>
<td>optional</td>
<td>defaults to 0, if set to 1 only trains allowing the transport of bicycles are allowed</td>
<td>1</td>
</tr>
<tr>
<td><code>accessibility</code></td>
<td>optional</td>
<td class="description">Possible values are <code>independent_boarding</code>, <code>assisted_boarding</code>, and <code>advanced_notice</code></td>
<td>independent_boarding</td>
</tr>
</tbody>
</table>

Expand Down

0 comments on commit 374f0fb

Please sign in to comment.