Skip to content

Commit

Permalink
[Docs] Add details to SO APIs landing page (#191693)
Browse files Browse the repository at this point in the history
Fix #191534
The deprecation warning in the Kibana Saved Objects API main page was
removed in #190654.

This PR adds a section about when the APIs will be removed and what to
use instead.

The PR also includes updates to other API main pages that mention the SO
APIs.

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials

VIew the [html
diff](https://kibana_bk_191693.docs-preview.app.elstc.co/diff) for these
changes:

![Short URLs API landing
page](https://github.com/user-attachments/assets/3716f33e-0d00-4ff7-b29d-7a5ba0a0f1f2)

![Data views API landing
page](https://github.com/user-attachments/assets/81c8a843-27ca-4510-a181-7ec9b20f86d6)

The updated OpenAPI document looks like this in a Bump.sh preview:


![image](https://github.com/user-attachments/assets/a8b58142-5082-4b75-8b3f-339b8a6b57e4)

---------

Co-authored-by: lcawl <[email protected]>
  • Loading branch information
TinaHeiligers and lcawl authored Aug 29, 2024
1 parent 6826eaf commit dd221a7
Show file tree
Hide file tree
Showing 15 changed files with 101 additions and 32 deletions.
4 changes: 2 additions & 2 deletions docs/api/dashboard-api.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[[dashboard-api]]
== Import and export dashboard APIs

deprecated::[7.15.0,Both of these APIs have been deprecated in favor of the {api-kibana}/group/endpoint-saved-objects[saved objects API].]
deprecated::[7.15.0,Both of these APIs have been deprecated and will be removed in 9.0.0]

Import and export dashboards with the corresponding saved objects, such as visualizations, saved
searches, and data views.
Expand All @@ -16,4 +16,4 @@ The following import and export dashboard APIs are available:
* <<dashboard-api-export, Export dashboard API>> to export dashboards and corresponding saved objects

include::dashboard/import-dashboard.asciidoc[]
include::dashboard/export-dashboard.asciidoc[]
include::dashboard/export-dashboard.asciidoc[]
2 changes: 0 additions & 2 deletions docs/api/data-views.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ For the latest details, refer to {api-kibana}/group/endpoint-data-views[data vie
WARNING: Do not write documents directly to the `.kibana` index. When you write directly
to the `.kibana` index, the data becomes corrupted and permanently breaks future {kib} versions.

WARNING: Use the data views APIs for managing data views instead of lower-level <<saved-objects-api, saved objects API>>.

2 changes: 1 addition & 1 deletion docs/api/osquery-manager.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

experimental[] Run live queries, manage packs and saved queries

WARNING: Use the osquery manager APIs for managing packs and saved queries instead of lower-level <<saved-objects-api, saved objects API>>.
Use the osquery manager APIs for managing packs and saved queries.

The following osquery manager APIs are available:

Expand Down
7 changes: 1 addition & 6 deletions docs/api/saved-objects.asciidoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[[saved-objects-api]]
== Saved objects APIs

Manage {kib} saved objects, including dashboards, visualizations, and more.

For the latest details, refer to the {api-kibana}/group/endpoint-saved-objects[saved object API].

WARNING: Do not write documents directly to the `.kibana` index. When you write directly
to the `.kibana` index, the data becomes corrupted and permanently breaks future {kib} versions.
For the latest details, refer to the {api-kibana}/group/endpoint-saved-objects[saved objects API].
9 changes: 8 additions & 1 deletion docs/api/short-urls.asciidoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
[[short-urls-api]]
== Short URLs APIs

Manage {kib} short URLs.
experimental[] Manage {kib} short URLs.

The following short urls APIs are available:

* <<short-urls-api-create, Create short URL API>>
* <<short-urls-api-get, Get short URL API>>
* <<short-urls-api-delete, Delete short URL API>>
* <<short-urls-api-resolve, Resolve short URL API>>

include::short-urls/create-short-url.asciidoc[]
include::short-urls/get-short-url.asciidoc[]
Expand Down
21 changes: 18 additions & 3 deletions oas_docs/output/kibana.serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19031,10 +19031,25 @@ tags:
- name: Fleet uninstall tokens
- description: Machine learning
name: ml
- description: >-
Manage Kibana saved objects, including dashboards, visualizations, and
more.
- description: >
Export sets of saved objects that you want to import into {kib}, resolve
import errors, and rotate an encryption key for encrypted saved objects
with the saved objects APIs.


To manage a specific type of saved object, use the corresponding APIs.

For example, use:


[Data views](../group/endpoint-data-views)


Warning: Do not write documents directly to the `.kibana` index. When you
write directly to the `.kibana` index, the data becomes corrupted and
permanently breaks future Kibana versions.
name: saved objects
x-displayName: Saved objects
- description: 'SLO APIs enable you to define, manage and track service-level objectives'
name: slo
- name: system
26 changes: 23 additions & 3 deletions oas_docs/output/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27592,10 +27592,30 @@ tags:
- name: Fleet uninstall tokens
- description: Machine learning
name: ml
- description: >-
Manage Kibana saved objects, including dashboards, visualizations, and
more.
- description: >
Export sets of saved objects that you want to import into {kib}, resolve
import errors, and rotate an encryption key for encrypted saved objects
with the saved objects APIs.


To manage a specific type of saved object, use the corresponding APIs.

For example, use:


* [Data views](../group/endpoint-data-views)

* [Spaces](https://www.elastic.co/guide/en/kibana/current/spaces-api.html)

* [Short
URLs](https://www.elastic.co/guide/en/kibana/current/short-urls-api.html)


Warning: Do not write documents directly to the `.kibana` index. When you
write directly to the `.kibana` index, the data becomes corrupted and
permanently breaks future Kibana versions.
name: saved objects
x-displayName: Saved objects
- description: 'SLO APIs enable you to define, manage and track service-level objectives'
name: slo
- name: system
4 changes: 0 additions & 4 deletions oas_docs/overlays/kibana.overlays.serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ actions:
description: Change displayName
update:
x-displayName: "Machine learning"
- target: '$.tags[?(@.name=="saved objects")]'
description: Change displayName
update:
x-displayName: "Saved objects"
- target: '$.tags[?(@.name=="slo")]'
description: Change displayName
update:
Expand Down
4 changes: 0 additions & 4 deletions oas_docs/overlays/kibana.overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ actions:
description: Change displayName
update:
x-displayName: "Machine learning"
- target: '$.tags[?(@.name=="saved objects")]'
description: Change displayName
update:
x-displayName: "Saved objects"
- target: '$.tags[?(@.name=="slo")]'
description: Change displayName
update:
Expand Down
3 changes: 2 additions & 1 deletion packages/core/saved-objects/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"tags": [
{
"name": "saved objects",
"description": "Manage Kibana saved objects, including dashboards, visualizations, and more."
"x-displayName": "Saved objects",
"description": "Export sets of saved objects that you want to import into {kib}, resolve import errors, and rotate an encryption key for encrypted saved objects with the saved objects APIs.\n\nTo manage a specific type of saved object, use the corresponding APIs.\nFor example, use:\n\n* [Data views](../group/endpoint-data-views)\n* [Spaces](https://www.elastic.co/guide/en/kibana/current/spaces-api.html)\n* [Short URLs](https://www.elastic.co/guide/en/kibana/current/short-urls-api.html)\n\nWarning: Do not write documents directly to the `.kibana` index. When you write directly to the `.kibana` index, the data becomes corrupted and permanently breaks future Kibana versions.\n"
}
],
"paths": {
Expand Down
13 changes: 12 additions & 1 deletion packages/core/saved-objects/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,18 @@ servers:
- url: /
tags:
- name: saved objects
description: Manage Kibana saved objects, including dashboards, visualizations, and more.
x-displayName: Saved objects
description: |
Export sets of saved objects that you want to import into {kib}, resolve import errors, and rotate an encryption key for encrypted saved objects with the saved objects APIs.
To manage a specific type of saved object, use the corresponding APIs.
For example, use:
* [Data views](../group/endpoint-data-views)
* [Spaces](https://www.elastic.co/guide/en/kibana/current/spaces-api.html)
* [Short URLs](https://www.elastic.co/guide/en/kibana/current/short-urls-api.html)
Warning: Do not write documents directly to the `.kibana` index. When you write directly to the `.kibana` index, the data becomes corrupted and permanently breaks future Kibana versions.
paths:
/api/encrypted_saved_objects/_rotate_key:
post:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"tags": [
{
"name": "saved objects",
"description": "Manage Kibana saved objects, including dashboards, visualizations, and more."
"x-displayName": "Saved objects",
"description": "Export sets of saved objects that you want to import into {kib}, resolve import errors, and rotate an encryption key for encrypted saved objects with the saved objects APIs.\n\nTo manage a specific type of saved object, use the corresponding APIs.\nFor example, use:\n\n[Data views](../group/endpoint-data-views)\n\nWarning: Do not write documents directly to the `.kibana` index. When you write directly to the `.kibana` index, the data becomes corrupted and permanently breaks future Kibana versions.\n"
}
],
"paths": {
Expand Down
11 changes: 10 additions & 1 deletion packages/core/saved-objects/docs/openapi/bundled_serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ servers:
default: localhost:5601
tags:
- name: saved objects
description: Manage Kibana saved objects, including dashboards, visualizations, and more.
x-displayName: Saved objects
description: |
Export sets of saved objects that you want to import into {kib}, resolve import errors, and rotate an encryption key for encrypted saved objects with the saved objects APIs.
To manage a specific type of saved object, use the corresponding APIs.
For example, use:
[Data views](../group/endpoint-data-views)
Warning: Do not write documents directly to the `.kibana` index. When you write directly to the `.kibana` index, the data becomes corrupted and permanently breaks future Kibana versions.
paths:
/api/saved_objects/_export:
post:
Expand Down
13 changes: 12 additions & 1 deletion packages/core/saved-objects/docs/openapi/entrypoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ info:
url: https://www.elastic.co/licensing/elastic-license
tags:
- name: saved objects
description: Manage Kibana saved objects, including dashboards, visualizations, and more.
x-displayName: Saved objects
description: |
Export sets of saved objects that you want to import into {kib}, resolve import errors, and rotate an encryption key for encrypted saved objects with the saved objects APIs.
To manage a specific type of saved object, use the corresponding APIs.
For example, use:
* [Data views](../group/endpoint-data-views)
* [Spaces](https://www.elastic.co/guide/en/kibana/current/spaces-api.html)
* [Short URLs](https://www.elastic.co/guide/en/kibana/current/short-urls-api.html)
Warning: Do not write documents directly to the `.kibana` index. When you write directly to the `.kibana` index, the data becomes corrupted and permanently breaks future Kibana versions.
servers:
- url: /
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ info:
url: https://www.elastic.co/licensing/elastic-license
tags:
- name: saved objects
description: Manage Kibana saved objects, including dashboards, visualizations, and more.
x-displayName: Saved objects
description: |
Export sets of saved objects that you want to import into {kib}, resolve import errors, and rotate an encryption key for encrypted saved objects with the saved objects APIs.
To manage a specific type of saved object, use the corresponding APIs.
For example, use:
[Data views](../group/endpoint-data-views)
Warning: Do not write documents directly to the `.kibana` index. When you write directly to the `.kibana` index, the data becomes corrupted and permanently breaks future Kibana versions.
servers:
- url: 'https://{kibana_url}'
variables:
Expand Down

0 comments on commit dd221a7

Please sign in to comment.