[8.11] [OAS] Remove redundant servers from data view APIs (#169887) (#169985)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[OAS] Remove redundant servers from data view APIs
(#169887)](https://github.com/elastic/kibana/pull/169887)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2023-10-26T20:17:57Z","message":"[OAS]
Remove redundant servers from data view APIs
(#169887)","sha":"7cd0b74ccb21e10407d2044b49fe0ff403e63451","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","Feature:Data
Views","release_note:skip","docs","backport:prev-minor","v8.12.0"],"number":169887,"url":"https://github.com/elastic/kibana/pull/169887","mergeCommit":{"message":"[OAS]
Remove redundant servers from data view APIs
(#169887)","sha":"7cd0b74ccb21e10407d2044b49fe0ff403e63451"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/169887","number":169887,"mergeCommit":{"message":"[OAS]
Remove redundant servers from data view APIs
(#169887)","sha":"7cd0b74ccb21e10407d2044b49fe0ff403e63451"}}]}]
BACKPORT-->

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
This commit is contained in:
Kibana Machine 2023-10-26 17:29:54 -04:00 committed by GitHub
parent 650a8ac487
commit 5c2aa7a743
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 145 deletions

View file

@ -14,8 +14,7 @@
},
"servers": [
{
"url": "http://localhost:5601",
"description": "local"
"url": "/"
}
],
"security": [
@ -96,12 +95,7 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view": {
"post": {
@ -152,18 +146,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view/{viewId}": {
"get": {
@ -232,12 +216,7 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"post": {
"summary": "Updates a data view.",
@ -290,18 +269,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view/{viewId}/fields": {
"post": {
@ -369,18 +338,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view/{viewId}/runtime_field": {
"post": {
@ -512,18 +471,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/data_view/{viewId}/runtime_field/{fieldName}": {
"get": {
@ -664,18 +613,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/api/data_views/default": {
"get": {
@ -788,18 +727,8 @@
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
}
},
"components": {

View file

@ -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: []
@ -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.
@ -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.
@ -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
@ -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.
@ -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.
@ -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.
@ -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.
@ -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:

View file

@ -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':

View file

@ -39,5 +39,3 @@ get:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601

View file

@ -29,8 +29,4 @@ post:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601

View file

@ -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.
@ -78,8 +76,3 @@ post:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601

View file

@ -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'

View file

@ -88,8 +88,3 @@ put:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601

View file

@ -92,7 +92,3 @@ post:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601

View file

@ -71,8 +71,3 @@ post:
application/json:
schema:
$ref: '../components/schemas/400_response.yaml'
servers:
- url: https://localhost:5601
servers:
- url: https://localhost:5601