[OpenAPI] Fix Serverless API base URL (#202373)

This commit is contained in:
Lisa Cawley 2024-12-02 12:09:03 -08:00 committed by GitHub
parent d4094c17be
commit 54370b209c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 29 additions and 38 deletions

View file

@ -42,11 +42,6 @@ info:
x-feedbackLink: x-feedbackLink:
label: Feedback label: Feedback
url: https://github.com/elastic/docs-content/issues/new?assignees=&labels=feedback%2Ccommunity&projects=&template=api-feedback.yaml&title=%5BFeedback%5D%3A+ url: https://github.com/elastic/docs-content/issues/new?assignees=&labels=feedback%2Ccommunity&projects=&template=api-feedback.yaml&title=%5BFeedback%5D%3A+
servers:
- url: https://{kibana_url}
variables:
kibana_url:
default: localhost:5601
security: security:
- apiKeyAuth: [] - apiKeyAuth: []
- basicAuth: [] - basicAuth: []

View file

@ -40,7 +40,7 @@ servers:
- url: https://{kibana_url} - url: https://{kibana_url}
variables: variables:
kibana_url: kibana_url:
default: localhost:5601 default: <KIBANA_URL>
security: security:
- apiKeyAuth: [] - apiKeyAuth: []
tags: tags:
@ -34488,8 +34488,6 @@ paths:
schema: schema:
$ref: '#/components/schemas/SLOs_409_response' $ref: '#/components/schemas/SLOs_409_response'
description: Conflict - The SLO id already exists description: Conflict - The SLO id already exists
servers:
- url: https://localhost:5601
summary: Create an SLO summary: Create an SLO
tags: tags:
- slo - slo
@ -34529,8 +34527,6 @@ paths:
schema: schema:
$ref: '#/components/schemas/SLOs_403_response' $ref: '#/components/schemas/SLOs_403_response'
description: Unauthorized response description: Unauthorized response
servers:
- url: https://localhost:5601
summary: Batch delete rollup and summary data summary: Batch delete rollup and summary data
tags: tags:
- slo - slo

View file

@ -14,7 +14,7 @@ actions:
- url: https://{kibana_url} - url: https://{kibana_url}
variables: variables:
kibana_url: kibana_url:
default: localhost:5601 default: <KIBANA_URL>
# Mark all operations as beta # Mark all operations as beta
- target: "$.paths[*]['get','put','post','delete','options','head','patch','trace']" - target: "$.paths[*]['get','put','post','delete','options','head','patch','trace']"
description: Add x-beta description: Add x-beta

View file

@ -4,6 +4,17 @@ info:
title: Overlays for the Kibana API document title: Overlays for the Kibana API document
version: 0.0.1 version: 0.0.1
actions: actions:
# Clean up server definitions
- target: '$.servers.*'
description: Remove all servers so we can add our own.
remove: true
- target: '$.servers'
description: Add server into the now empty server array.
update:
- url: https://{kibana_url}
variables:
kibana_url:
default: localhost:5601
# Add an introduction to spaces # Add an introduction to spaces
- target: '$' - target: '$'
description: Add an extra page about spaces description: Add an extra page about spaces

View file

@ -14,8 +14,12 @@
}, },
"servers": [ "servers": [
{ {
"url": "http://localhost:5601", "url": "https://{kibana_url}",
"description": "local" "variables": {
"kibana_url": {
"default": "localhost:5601"
}
}
} }
], ],
"tags": [ "tags": [
@ -102,12 +106,7 @@
} }
} }
} }
}, }
"servers": [
{
"url": "https://localhost:5601"
}
]
}, },
"get": { "get": {
"summary": "Get a paginated list of SLOs", "summary": "Get a paginated list of SLOs",
@ -738,12 +737,7 @@
} }
} }
} }
}, }
"servers": [
{
"url": "https://localhost:5601"
}
]
} }
} }
}, },

View file

@ -9,8 +9,10 @@ info:
name: Elastic License 2.0 name: Elastic License 2.0
url: https://www.elastic.co/licensing/elastic-license url: https://www.elastic.co/licensing/elastic-license
servers: servers:
- url: http://localhost:5601 - url: https://{kibana_url}
description: local variables:
kibana_url:
default: localhost:5601
tags: tags:
- name: slo - name: slo
description: SLO APIs enable you to define, manage and track service-level objectives description: SLO APIs enable you to define, manage and track service-level objectives
@ -63,8 +65,6 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/409_response' $ref: '#/components/schemas/409_response'
servers:
- url: https://localhost:5601
get: get:
summary: Get a paginated list of SLOs summary: Get a paginated list of SLOs
operationId: findSlosOp operationId: findSlosOp
@ -448,8 +448,6 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/403_response' $ref: '#/components/schemas/403_response'
servers:
- url: https://localhost:5601
components: components:
parameters: parameters:
kbn_xsrf: kbn_xsrf:

View file

@ -12,8 +12,10 @@ tags:
- name: slo - name: slo
description: SLO APIs enable you to define, manage and track service-level objectives description: SLO APIs enable you to define, manage and track service-level objectives
servers: servers:
- url: "http://localhost:5601" - url: https://{kibana_url}
description: local variables:
kibana_url:
default: localhost:5601
paths: paths:
"/s/{spaceId}/api/observability/slos": "/s/{spaceId}/api/observability/slos":
$ref: "paths/s@{spaceid}@api@slos.yaml" $ref: "paths/s@{spaceid}@api@slos.yaml"

View file

@ -46,9 +46,6 @@ post:
application/json: application/json:
schema: schema:
$ref: '../components/schemas/409_response.yaml' $ref: '../components/schemas/409_response.yaml'
servers:
- url: https://localhost:5601
get: get:
summary: Get a paginated list of SLOs summary: Get a paginated list of SLOs
operationId: findSlosOp operationId: findSlosOp

View file

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