Skip to content

Commit

Permalink
[DOCS] Reformat info and deprecation APIs to use new API format (elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Jul 18, 2019
1 parent 1ee3723 commit 9413f97
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 33 deletions.
24 changes: 9 additions & 15 deletions docs/reference/migration/apis/deprecation.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,23 @@ The deprecation API is to be used to retrieve information about different
cluster, node, and index level settings that use deprecated features that will
be removed or changed in the next major version.

[float]
==== Request
[[migration-api-request]]
==== {api-request-title}

`GET /_migration/deprecations` +

`GET /<index_name>/_migration/deprecations`

//=== Description

[float]
==== Path Parameters
[[migration-api-path-params]]
==== {api-path-parms-title}

`index_name`::
(string) Identifier for the index. It can be an index name or a wildcard
expression. When you specify this parameter, only index-level deprecations for
the specified indices are returned.

//=== Query Parameters

//=== Authorization
(Optional, string) Identifier for the index. It can be an index name or a
wildcard expression. When you specify this parameter, only index-level
deprecations for the specified indices are returned.

[float]
==== Examples
[[migration-api-example]]
==== {api-examples-title}

To see the list of offenders in your cluster, submit a GET request to the
`_migration/deprecations` endpoint:
Expand Down
36 changes: 18 additions & 18 deletions docs/reference/rest-api/info.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
[[info-api]]
== Info API

The info API provides general information about the installed {xpack} features.
Provides general information about the installed {xpack} features.

[float]
=== Request
[discrete]
[[info-api-request]]
=== {api-request-title}

`GET /_xpack`

[float]
=== Description
[discrete]
[[info-api-desc]]
=== {api-description-title}

The information provided by this API includes:

Expand All @@ -20,24 +22,22 @@ The information provided by this API includes:
* Features Information - The features that are currently enabled and available
under the current license.

[float]
=== Path Parameters
[discrete]
[[info-api-path-params]]
=== {api-path-parms-title}

`categories`::
(list) A comma-separated list of the information categories to include in the
response. For example, `build,license,features`.
(Optional, list) A comma-separated list of the information categories to
include in the response. For example, `build,license,features`.

`human`::
(boolean) Defines whether additional human-readable information is included in
the response. In particular, it adds descriptions and a tag line. The
default value is `true`.
(Optional, boolean) Defines whether additional human-readable information is
included in the response. In particular, it adds descriptions and a tag line.
The default value is `true`.

//=== Query Parameters

//=== Authorization

[float]
=== Examples
[discrete]
[[info-api--example]]
=== {api-examples-title}

The following example queries the info API:

Expand Down

0 comments on commit 9413f97

Please sign in to comment.