Skip to content

Commit

Permalink
[OAS] Remove redundant servers from data view APIs (#169887)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Oct 26, 2023
1 parent f8d3cc2 commit 7cd0b74
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 145 deletions.
89 changes: 9 additions & 80 deletions src/plugins/data_views/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
},
"servers": [
{
"url": "http://localhost:5601",
"description": "local"
"url": "/"
}
],
"security": [
Expand Down Expand Up @@ -96,12 +95,7 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view": {
"post": {
Expand Down Expand Up @@ -152,18 +146,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view/{viewId}": {
"get": {
Expand Down Expand Up @@ -232,12 +216,7 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"post": {
"summary": "Updates a data view.",
Expand Down Expand Up @@ -290,18 +269,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view/{viewId}/fields": {
"post": {
Expand Down Expand Up @@ -369,18 +338,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view/{viewId}/runtime_field": {
"post": {
Expand Down Expand Up @@ -512,18 +471,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view/{viewId}/runtime_field/{fieldName}": {
"get": {
Expand Down Expand Up @@ -664,18 +613,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/default": {
"get": {
Expand Down Expand Up @@ -788,18 +727,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
}
},
"components": {
Expand Down
31 changes: 1 addition & 30 deletions src/plugins/data_views/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ info:
name: Elastic License 2.0
url: https://www.elastic.co/licensing/elastic-license
servers:
- url: http://localhost:5601
description: local
- url: /
security:
- basicAuth: []
- apiKeyAuth: []
Expand Down Expand Up @@ -60,8 +59,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/400_response'
servers:
- url: https://localhost:5601
/api/data_views/data_view:
post:
summary: Creates a data view.
Expand Down Expand Up @@ -94,10 +91,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/400_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/api/data_views/data_view/{viewId}:
get:
summary: Retrieves a single data view by identifier.
Expand Down Expand Up @@ -142,8 +135,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/404_response'
servers:
- url: https://localhost:5601
post:
summary: Updates a data view.
operationId: updateDataView
Expand Down Expand Up @@ -176,10 +167,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/400_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/api/data_views/data_view/{viewId}/fields:
post:
summary: Update fields presentation metadata such as count, customLabel and format.
Expand Down Expand Up @@ -222,10 +209,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/400_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/api/data_views/data_view/{viewId}/runtime_field:
post:
summary: Creates a runtime field.
Expand Down Expand Up @@ -316,10 +299,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/400_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/api/data_views/data_view/{viewId}/runtime_field/{fieldName}:
get:
summary: Retrieves a runtime field.
Expand Down Expand Up @@ -413,10 +392,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/400_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
/api/data_views/default:
get:
summary: Retrieves the default data view identifier.
Expand Down Expand Up @@ -491,10 +466,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/400_response'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
components:
securitySchemes:
basicAuth:
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/data_views/docs/openapi/entrypoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tags:
- name: data views
description: Data view APIs enable you to manage data views, formerly known as Kibana index patterns.
servers:
- url: 'http://localhost:5601'
description: local
- url: /
paths:
# Default space
'/api/data_views':
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/data_views/docs/openapi/paths/api@data_views.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,4 @@ post:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601

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

post:
summary: Updates a data view.
Expand Down Expand Up @@ -78,8 +76,3 @@ post:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601

servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,4 @@ post:
content:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601

servers:
- url: https://localhost:5601
$ref: '../components/schemas/400_response.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,3 @@ put:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601

servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,3 @@ post:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,3 @@ post:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601

servers:
- url: https://localhost:5601

0 comments on commit 7cd0b74

Please sign in to comment.