From dede29bc89c6fbebddbad272cda17745c4c577e7 Mon Sep 17 00:00:00 2001 From: Glen Smith Date: Tue, 10 Oct 2017 11:42:54 -0600 Subject: [PATCH 1/2] Add `bytes` to cat.shards API spec --- .../src/main/resources/rest-api-spec/api/cat.shards.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json index db46ce909ff6b..2ad714e7225d7 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json @@ -16,6 +16,11 @@ "type" : "string", "description" : "a short version of the Accept header, e.g. json, yaml" }, + "bytes": { + "type": "enum", + "description" : "The unit in which to display byte values", + "options": [ "b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb" ] + }, "local": { "type" : "boolean", "description" : "Return local information, do not retrieve the state from master node (default: false)" From f873ee2da4de10d76cf05707e2feb88a07f7964d Mon Sep 17 00:00:00 2001 From: Glen Smith Date: Tue, 10 Oct 2017 19:19:58 -0600 Subject: [PATCH 2/2] add bytes param to rest-api-spec of cat.segments --- .../src/main/resources/rest-api-spec/api/cat.segments.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json index 118f8b6bf9632..3306b2f753b2a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json @@ -16,6 +16,11 @@ "type" : "string", "description" : "a short version of the Accept header, e.g. json, yaml" }, + "bytes": { + "type": "enum", + "description" : "The unit in which to display byte values", + "options": [ "b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb" ] + }, "h": { "type": "list", "description" : "Comma-separated list of column names to display"