Skip to content

Commit d3a58a8

Browse files
add request heading line to response examples
1 parent 57531ed commit d3a58a8

File tree

232 files changed

+232
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+232
-0
lines changed

specification/_global/bulk/examples/response/BulkResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Failed actions
2+
method_request: POST /_bulk
23
description: >
34
If you run `POST /_bulk` with operations that update non-existent documents, the operations cannot complete successfully.
45
The API returns a response with an `errors` property value `true`.

specification/_global/bulk/examples/response/BulkResponseExample3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Filter for failed operations
2+
method_request: POST /_bulk?filter_path=items.*.error
23
description: >
34
An example response from `POST /_bulk?filter_path=items.*.error`, which returns only information about failed operations.
45
# type: response

specification/_global/close_point_in_time/examples/200_response/ClosePointInTimeResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: DELETE /_pit
23
description: A successful response from `DELETE /_pit`.
34
# type: response
45
# response_code: 200

specification/_global/count/examples/200_response/CountResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /my-index-000001/_count?q=user:kimchy
23
description: A successful response from `GET /my-index-000001/_count?q=user:kimchy`.
34
# type: response
45
# response_code: 200

specification/_global/delete/examples/response/DeleteResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: DELETE /my-index-000001/_doc/1
23
description: A successful response from `DELETE /my-index-000001/_doc/1`, which deletes the JSON document 1 from the `my-index-000001` index.
34
# type: response
45
# response_code: ''

specification/_global/delete_by_query/examples/response/DeleteByQueryResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: POST /my-index-000001/_delete_by_query
23
description: A successful response from `POST /my-index-000001/_delete_by_query`.
34
# type: response
45
# response_code:

specification/_global/explain/examples/response/ExplainResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /my-index-000001/_explain/0
23
description: A successful response from `GET /my-index-000001/_explain/0`.
34
# type: response
45
# response_code: 200

specification/_global/field_caps/examples/response/FieldCapabilitiesResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
summary: Get two fields
22
# type: "response"
3+
method_request: GET _field_caps?fields=rating,title
34
description: >
45
A successful response from `GET _field_caps?fields=rating,title`.
56
The field `rating` is defined as a long in `index1` and `index2` and as a `keyword` in `index3` and `index4`.

specification/_global/field_caps/examples/response/FieldCapabilitiesResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
summary: Get unmapped fields
22
# type: "response"
3+
method_request: GET _field_caps?fields=rating,title&include_unmapped
34
description: >
45
A successful response from `GET _field_caps?fields=rating,title&include_unmapped`.
56
The response contains an entry for each field that is present in some indices but not all.

specification/_global/get/examples/response/GetResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Get a document
2+
method_request: GET my-index-000001/_doc/0
23
description: >
34
A successful response from `GET my-index-000001/_doc/0`.
45
It retrieves the JSON document with the `_id` 0 from the `my-index-000001` index.

specification/_global/get/examples/response/GetResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Get stored fields
2+
method_request: GET my-index-000001/_doc/1?stored_fields=tags,counter
23
description: >
34
A successful response from `GET my-index-000001/_doc/1?stored_fields=tags,counter`, which retrieves a set of stored fields.
45
Field values fetched from the document itself are always returned as an array.

specification/_global/get/examples/response/GetResponseExample3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Get metadata fields
2+
method_request: GET my-index-000001/_doc/2?routing=user1&stored_fields=tags,counter
23
description: >
34
A successful response from `GET my-index-000001/_doc/2?routing=user1&stored_fields=tags,counter`, which retrieves the `_routing` metadata field.
45
# type: response

specification/_global/index/examples/response/IndexResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Automate document IDs
2+
method_request: POST my-index-000001/_doc/
23
description: A successful response from `POST my-index-000001/_doc/`, which contains an automated document ID.
34
# type: response
45
# response_code: 200

specification/_global/index/examples/response/IndexResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Define document IDs
2+
method_request: PUT my-index-000001/_doc/1
23
description: A successful response from `PUT my-index-000001/_doc/1`.
34
# type: response
45
# response_code: 200

specification/_global/info/examples/response/RootNodeInfoResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary: ''
2+
method_request: GET /
23
description: A successful response from `GET /`s.
34
# type: response
45
# response_code: 200

specification/_global/open_point_in_time/examples/response/OpenPointInTimeResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: POST /my-index-000001/_pit?keep_alive=1m&allow_partial_search_results=true
23
description: >
34
A successful response from `POST /my-index-000001/_pit?keep_alive=1m&allow_partial_search_results=true`.
45
It includes a summary of the total number of shards, as well as the number of successful shards when creating the PIT.

specification/_global/scripts_painless_execute/examples/response/ExecutePainlessScriptResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Test context
2+
method_request: POST /_scripts/painless/_execute
23
description: A successful response from `POST /_scripts/painless/_execute` with a `painless_test` context.
34
# type: response
45
# response_code: ''

specification/_global/scripts_painless_execute/examples/response/ExecutePainlessScriptResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Filter context
2+
method_request: POST /_scripts/painless/_execute
23
description: A successful response from `POST /_scripts/painless/_execute` with a `filter` context.
34
# type: response
45
# response_code: ''

specification/_global/scripts_painless_execute/examples/response/ExecutePainlessScriptResponseExample3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Score context
2+
method_request: POST /_scripts/painless/_execute
23
description: A successful response from `POST /_scripts/painless/_execute` with a `score` context.
34
# type: response
45
# response_code: ''

specification/_global/search/examples/200_response/SearchResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /my-index-000001/_search?from=40&size=20
23
description: >
34
An abbreviated response from `GET /my-index-000001/_search?from=40&size=20` with a simple term query.
45
# type: response

specification/_global/search_mvt/examples/response/SearchMvtResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET museums/_mvt/location/13/4207/2692
23
description: >
34
A successful response from `GET museums/_mvt/location/13/4207/2692`.
45
It returns results as a binary vector tile.

specification/_global/search_shards/examples/response/SearchShardsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /my-index-000001/_search_shards
23
description: An abbreviated response from `GET /my-index-000001/_search_shards`.
34
# type: response
45
# response_code: 200

specification/_global/terms_enum/examples/response/TermsEnumResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: POST stackoverflow/_terms_enum
23
description: A successful response from `POST stackoverflow/_terms_enum`.
34
# type: "response",
45
# response_code: 200,

specification/_global/termvectors/examples/response/TermVectorsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Return stored term vectors
2+
method_request: GET /my-index-000001/_termvectors/1
23
description: A successful response from `GET /my-index-000001/_termvectors/1`.
34
# type: response
45
# response_code: ''

specification/_global/termvectors/examples/response/TermVectorsResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Per-field analyzer
2+
method_request: GET /my-index-000001/_termvectors
23
description: A successful response from `GET /my-index-000001/_termvectors` with `per_field_analyzer` in the request body.
34
# type: response
45
# response_code: ''

specification/_global/termvectors/examples/response/TermVectorsResponseExample3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Terms filtering
2+
method_request: GET /my-index-000001/_termvectors
23
description: A successful response from `GET /my-index-000001/_termvectors` with a `filter` in the request body.
34
# type: response
45
# response_code: ''

specification/async_search/get/examples/response/AsyncSearchGetResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_async_search/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=
23
description: A succesful response from `GET /_async_search/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=`.
34
# type: response
45
# response_code: 200

specification/async_search/status/examples/response/AsyncSearchStatusResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: An active async search
2+
method_request: GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=
23
description: A succesful response from `GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=`, which retrieves the status of a previously submitted async search without the results.
34
# type: response
45
# response_code: 200

specification/async_search/status/examples/response/AsyncSearchStatusResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: A completed async search
2+
method_request: GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=
23
description: >
34
A succesful response from `GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=` for an async search that has completed.
45
The status response has an additional `completion_status` field that shows the status code of the completed async search.

specification/async_search/status/examples/response/AsyncSearchStatusResponseExample3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: A failed async search
2+
method_request: GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=
23
description: >
34
A response from `GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=` for an async search that has completed with an error.
45
The status response has an additional `completion_status` field that shows the status code of the completed async search.

specification/autoscaling/delete_autoscaling_policy/examples/response/DeleteAutoscalingPolicyResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: A successful response of deleting one or more autoscaling policy.
2+
method_request: DELETE /_autoscaling/policy/*
23
description: >
34
This may be a response to either `DELETE /_autoscaling/policy/my_autoscaling_policy` or `DELETE /_autoscaling/policy/*`.
45
# type: "response"

specification/autoscaling/get_autoscaling_capacity/examples/200_response/GetAutoscalingCapacityResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: 'A successful response for retrieving the current autoscaling capacity.'
2+
method_request: GET /_autoscaling/capacity
23
description: 'This may be a response to `GET /_autoscaling/capacity`.'
34
# type: "response"
45
# response_code: 200

specification/autoscaling/get_autoscaling_policy/examples/200_response/GetAutoscalingPolicyResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: 'A successful response for retrieving an autoscaling policy.'
2+
method_request: GET /_autoscaling/policy/my_autoscaling_policy
23
description: 'This may be a response to `GET /_autoscaling/policy/my_autoscaling_policy`.'
34
# type: "response"
45
# response_code: 200

specification/cat/aliases/examples/200_response/CatAliasesResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET _cat/aliases?format=json&v=true
23
description: >
34
A successful response from `GET _cat/aliases?format=json&v=true`.
45
This response shows that `alias2` has configured a filter and `alias3` and `alias4` have routing configurations.

specification/cat/allocation/examples/200_response/CatAllocationResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/allocation?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/allocation?v=true&format=json`.
45
It shows a single shard is allocated to the one node available.

specification/cat/component_templates/examples/200_response/CatComponentTemplatesResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET _cat/component_templates/my-template-*?v=true&s=name&format=json
23
description: >
34
A successful response from `GET _cat/component_templates/my-template-*?v=true&s=name&format=json`.
45
# type: response

specification/cat/count/examples/200_response/CatCountResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Single data stream or index count
2+
method_request: GET /_cat/count/my-index-000001?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/count/my-index-000001?v=true&format=json`.
45
It retrieves the document count for the `my-index-000001` data stream or index.

specification/cat/count/examples/200_response/CatCountResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: All data streams and indices count
2+
method_request: GET /_cat/count?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/count?v=true&format=json`.
45
It retrieves the document count for all data streams and indices in the cluster.

specification/cat/fielddata/examples/200_response/CatFielddataResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Single field data
2+
method_request: GET /_cat/fielddata?v=true&fields=body&format=json
23
description: >
34
A successful response from `GET /_cat/fielddata?v=true&fields=body&format=json`.
45
You can specify an individual field in the request body or URL path.

specification/cat/fielddata/examples/200_response/CatFielddataResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Multiple fields data
2+
method_request: GET /_cat/fielddata?v=true
23
description: >
34
A successful response from `GET /_cat/fielddata/body,soul?v=true&format=json`.
45
You can specify a comma-separated list of fields in the request body or URL path.

specification/cat/health/examples/200_response/CatHealthResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/health?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/health?v=true&format=json`.
45
By default, it returns `HH:MM:SS` and Unix epoch timestamps.

specification/cat/indices/examples/200_response/CatIndicesResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/indices/my-index-*?v=true&s=index&format=json
23
description: >
34
A successful response from `GET /_cat/indices/my-index-*?v=true&s=index&format=json`.
45
# type: response

specification/cat/master/examples/200_response/CatMasterResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/master?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/master?v=true&format=json`.
45
# type: response

specification/cat/ml_data_frame_analytics/examples/200_response/CatDataframeanalyticsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET _cat/ml/data_frame/analytics?v=true&format=json
23
description: A successful response from `GET _cat/ml/data_frame/analytics?v=true&format=json`.
34
# type: response
45
# response_code: 200

specification/cat/ml_datafeeds/examples/200_response/CatDatafeedsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET _cat/ml/datafeeds?v=true&format=json
23
description: A successful response from `GET _cat/ml/datafeeds?v=true&format=json`.
34
# type: response
45
# response_code:

specification/cat/ml_jobs/examples/200_response/CatJobsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET _cat/ml/anomaly_detectors?h=id,s,dpr,mb&v=true&format=json
23
description: A successful response from `GET _cat/ml/anomaly_detectors?h=id,s,dpr,mb&v=true&format=json`.
34
# type: response
45
# response_code: ''

specification/cat/ml_trained_models/examples/200_response/CatTrainedModelsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET _cat/ml/trained_models?v=true&format=json
23
description: A successful response from `GET _cat/ml/trained_models?v=true&format=json`.
34
# type: response
45
# response_code: ''

specification/cat/nodeattrs/examples/200_response/CatNodeAttributesResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Default columns
2+
method_request: GET /_cat/nodeattrs?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/nodeattrs?v=true&format=json`.
45
The `node`, `host`, and `ip` columns provide basic information about each node.

specification/cat/nodeattrs/examples/200_response/CatNodeAttributesResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Explicit columns
2+
method_request: GET /_cat/nodeattrs?v=true&h=name,pid,attr,value
23
description: >
34
A successful response from `GET /_cat/nodeattrs?v=true&h=name,pid,attr,value`.
45
It returns the `name`, `pid`, `attr`, and `value` columns.

specification/cat/nodes/examples/200_response/CatNodesResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Default columns
2+
method_request: GET /_cat/nodes?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/nodes?v=true&format=json`.
45
The `ip`, `heap.percent`, `ram.percent`, `cpu`, and `load_*` columns provide the IP addresses and performance information of each node.

specification/cat/nodes/examples/200_response/CatNodesResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Explicit columns
2+
method_request: GET /_cat/nodes?v=true&h=id,ip,port,v,m&format=json
23
description: >
34
A successful response from `GET /_cat/nodes?v=true&h=id,ip,port,v,m&format=json`.
45
It returns the `id`, `ip`, `port`, `v` (version), and `m` (master) columns.

specification/cat/pending_tasks/examples/200_response/CatPendingTasksResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/pending_tasks?v=trueh=insertOrder,timeInQueue,priority,source&format=json
23
description: >
34
A successful response from `GET /_cat/pending_tasks?v=trueh=insertOrder,timeInQueue,priority,source&format=json`.
45
# type: response

specification/cat/plugins/examples/200_response/CatPluginsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/plugins?v=true&s=component&h=name,component,version,description&format=json
23
description: >
34
A successful response from `GET /_cat/plugins?v=true&s=component&h=name,component,version,description&format=json`.
45
# type: response

specification/cat/recovery/examples/200_response/CatRecoveryResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: No ongoing recoveries
2+
method_request: GET _cat/recovery?v=true&format=json
23
description: >
34
A successful response from `GET _cat/recovery?v=true&format=json`.
45
In this example, the source and target nodes are the same because the recovery type is `store`, meaning they were read from local storage on node start.

specification/cat/recovery/examples/200_response/CatRecoveryResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: A live shard recovery
2+
method_request: GET _cat/recovery?v=true&h=i,s,t,ty,st,shost,thost,f,fp,b,bp&format=json
23
description: >
34
A successful response from `GET _cat/recovery?v=true&h=i,s,t,ty,st,shost,thost,f,fp,b,bp&format=json`.
45
You can retrieve information about an ongoing recovery for example when you increase the replica count of an index and bring another node online to host the replicas.

specification/cat/recovery/examples/200_response/CatRecoveryResponseExample3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: A snapshot recovery
2+
method_request: GET _cat/recovery?v=true&h=i,s,t,ty,st,rep,snap,f,fp,b,bp&format=json
23
description: >
34
A successful response from `GET _cat/recovery?v=true&h=i,s,t,ty,st,rep,snap,f,fp,b,bp&format=json`.
45
You can restore backups of an index using the snapshot and restore API.

specification/cat/repositories/examples/200_response/CatRepositoriesResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/repositories?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/repositories?v=true&format=json`.
45
# type: response

specification/cat/segments/examples/200_response/CatSegmentsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/segments?v=true&format=json
23
description: >
34
A successful response from `GET /_cat/segments?v=true&format=json`.
45
# type: response

specification/cat/shards/examples/200_response/CatShardsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: A single data stream or index
2+
method_request: GET _cat/shards?format=json
23
description: >
34
A successful response from `GET _cat/shards?format=json`.
45
# type: response

specification/cat/shards/examples/200_response/CatShardsResponseExample2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: A wildcard pattern
2+
method_request: GET _cat/shards/my-index-*?format=json
23
description: >
34
A successful response from `GET _cat/shards/my-index-*?format=json`.
45
It returns information for any data streams or indices beginning with `my-index-`.

specification/cat/shards/examples/200_response/CatShardsResponseExample3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: A relocating shard
2+
method_request: GET _cat/shards?format=json
23
description: >
34
A successful response from `GET _cat/shards?format=json`.
45
The `RELOCATING` value in the `state` column indicates the index shard is relocating.

specification/cat/shards/examples/200_response/CatShardsResponseExample4.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Shard states
2+
method_request: GET _cat/shards?format=json
23
description: >
34
A successful response from `GET _cat/shards?format=json`.
45
Before a shard is available for use, it goes through an `INITIALIZING` state.

specification/cat/shards/examples/200_response/CatShardsResponseExample5.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
summary: Reasons for unassigned shards
2+
method_request: GET _cat/shards?h=index,shard,prirep,state,unassigned.reason&format=json
23
description: >
34
A successful response from `GET _cat/shards?h=index,shard,prirep,state,unassigned.reason&format=json`.
45
It includes the `unassigned.reason` column, which indicates why a shard is unassigned.

specification/cat/snapshots/examples/200_response/CatSnapshotsResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET /_cat/snapshots/repo1?v=true&s=id&format=json
23
description: >
34
A successful response from `GET /_cat/snapshots/repo1?v=true&s=id&format=json`.
45
# type: response

specification/cat/tasks/examples/200_response/CatTasksResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET _cat/tasks?v=true&format=json
23
description: A successful response from `GET _cat/tasks?v=true&format=json`.
34
# type: response
45
# response_code: 200

specification/cat/templates/examples/200_response/CatTemplatesResponseExample1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# summary:
2+
method_request: GET _cat/templates/my-template-*?v=true&s=name&format=json
23
description: >
34
A successful response from `GET _cat/templates/my-template-*?v=true&s=name&format=json`.
45
# type: response

0 commit comments

Comments
 (0)