From f79851e23a32c31efbb9342a84ef3e50feb061bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Tue, 28 Jun 2016 02:07:46 +0200 Subject: [PATCH] [API] separate tasks.list and tasks.get APIs in the json definition (#19107) --- .../rest-api-spec/api/{task.get.json => tasks.get.json} | 2 +- .../src/main/resources/rest-api-spec/api/tasks.list.json | 2 +- .../rest-api-spec/test/{task.get => tasks.get}/10_basic.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename rest-api-spec/src/main/resources/rest-api-spec/api/{task.get.json => tasks.get.json} (97%) rename rest-api-spec/src/main/resources/rest-api-spec/test/{task.get => tasks.get}/10_basic.yaml (92%) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/task.get.json b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.get.json similarity index 97% rename from rest-api-spec/src/main/resources/rest-api-spec/api/task.get.json rename to rest-api-spec/src/main/resources/rest-api-spec/api/tasks.get.json index 8024f015e96..f97206cd16f 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/task.get.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.get.json @@ -1,5 +1,5 @@ { - "task.get": { + "tasks.get": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", "methods": ["GET"], "url": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json index a1913fbfc17..a966cb0e507 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json @@ -4,7 +4,7 @@ "methods": ["GET"], "url": { "path": "/_tasks", - "paths": ["/_tasks", "/_tasks/{task_id}"], + "paths": ["/_tasks"], "parts": {}, "params": { "node_id": { diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/task.get/10_basic.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/tasks.get/10_basic.yaml similarity index 92% rename from rest-api-spec/src/main/resources/rest-api-spec/test/task.get/10_basic.yaml rename to rest-api-spec/src/main/resources/rest-api-spec/test/tasks.get/10_basic.yaml index ba90e1541fe..48d9f46ac73 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/task.get/10_basic.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/tasks.get/10_basic.yaml @@ -6,5 +6,5 @@ - do: catch: missing - task.get: + tasks.get: task_id: foo:1