Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.11][OAS] Simplify server declaration for case APIs #169973

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
497 changes: 48 additions & 449 deletions x-pack/plugins/cases/docs/openapi/bundled.json

Large diffs are not rendered by default.

163 changes: 1 addition & 162 deletions x-pack/plugins/cases/docs/openapi/bundled.yaml

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions x-pack/plugins/cases/docs/openapi/entrypoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- name: cases
description: Case APIs enable you to open and track issues.
servers:
- url: 'http://localhost:5601'
description: local
- url: /
paths:
# Paths in the default space
'/api/cases':
Expand Down
11 changes: 1 addition & 10 deletions x-pack/plugins/cases/docs/openapi/paths/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ post:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

delete:
summary: Deletes one or more cases in the default space.
Expand All @@ -59,8 +57,6 @@ delete:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

patch:
summary: Updates one or more cases in the default space.
Expand Down Expand Up @@ -98,9 +94,4 @@ patch:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
4 changes: 0 additions & 4 deletions x-pack/plugins/cases/docs/openapi/paths/api@cases@_find.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601s
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

post:
summary: Sets external connection details, such as the closure type and default connector for cases in the default space.
Expand Down Expand Up @@ -67,8 +65,4 @@ post:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,4 @@ patch:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ post:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

delete:
summary: Deletes all comments and alerts from a case in the default space.
Expand All @@ -60,8 +58,6 @@ delete:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

patch:
summary: Updates a comment or alert in a case in the default space.
Expand Down Expand Up @@ -101,8 +97,6 @@ patch:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

get:
summary: Retrieves all the comments from a case in the default space.
Expand Down Expand Up @@ -130,9 +124,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ delete:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

get:
summary: Retrieves a comment from a case in the default space.
Expand Down Expand Up @@ -52,8 +50,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,4 @@ post:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ post:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

delete:
summary: Deletes one or more cases.
Expand All @@ -61,8 +59,6 @@ delete:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

patch:
summary: Updates one or more cases.
Expand Down Expand Up @@ -102,8 +98,3 @@ patch:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601

post:
summary: Sets external connection details, such as the closure type and default connector for cases.
Expand Down Expand Up @@ -72,8 +70,4 @@ post:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,4 @@ patch:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@ get:
content:
application/json:
schema:
$ref: '../components/schemas/4xx_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
$ref: '../components/schemas/4xx_response.yaml'
Loading
Loading