Skip to content

Commit

Permalink
Fixes #18622: Bad file name in api-doc: some more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fanf authored and amousset committed Nov 18, 2020
1 parent 873e045 commit 4877e0e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
13 changes: 13 additions & 0 deletions webapp/sources/api-doc/components/parameters/node-delete-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: CC-BY-SA-2.0
# SPDX-FileCopyrightText: 2013-2020 Normation SAS
name: "mode"
in: query
required: false
description: Deletion mode to use, either move to trash ('move', default) or erase ('erase')
schema:
default: move
type: string
enum:
- move
- erase
example: move
12 changes: 1 addition & 11 deletions webapp/sources/api-doc/paths/nodes/id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,7 @@ delete:
operationId: deleteNode
parameters:
- $ref: ../../components/parameters/node-id.yml
- name: "mode"
in: query
required: false
description: Deletion mode to use, either move to trash ('move', default) or erase ('erase')
schema:
default: move
type: string
enum:
- move
- erase
example: move
- $ref: ../../components/parameters/node-delete-mode.yml
responses:
"200":
description: Nodes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ post:
description: Add or delete allowed networks for a policy server
operationId: modifyAllowedNetworks
parameters:
- $ref: ../../components/parameters/get-allowed-networks.yml
- $ref: ../../components/parameters/setting-allowed-networks.yml
requestBody:
required: true
content:
Expand Down

0 comments on commit 4877e0e

Please sign in to comment.