From c4951ef74fa29c8bd47ddb6c076afeac9d974d85 Mon Sep 17 00:00:00 2001 From: javanna Date: Thu, 12 Nov 2015 17:40:14 +0100 Subject: [PATCH] update get pipeline param names to id for consistency --- .../resources/rest-api-spec/api/ingest.get_pipeline.json | 6 +++--- .../test/resources/rest-api-spec/test/ingest/20_crud.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/ingest/src/test/resources/rest-api-spec/api/ingest.get_pipeline.json b/plugins/ingest/src/test/resources/rest-api-spec/api/ingest.get_pipeline.json index 246c6535e92..71772a28a76 100644 --- a/plugins/ingest/src/test/resources/rest-api-spec/api/ingest.get_pipeline.json +++ b/plugins/ingest/src/test/resources/rest-api-spec/api/ingest.get_pipeline.json @@ -3,10 +3,10 @@ "documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html", "methods": [ "GET" ], "url": { - "path": "/_ingest/pipeline/{ids}", - "paths": [ "/_ingest/pipeline/{ids}" ], + "path": "/_ingest/pipeline/{id}", + "paths": [ "/_ingest/pipeline/{id}" ], "parts": { - "ids": { + "id": { "type" : "string", "description" : "Comma separated list of pipeline ids. Wildcards supported", "required" : true diff --git a/plugins/ingest/src/test/resources/rest-api-spec/test/ingest/20_crud.yaml b/plugins/ingest/src/test/resources/rest-api-spec/test/ingest/20_crud.yaml index 82177c615ab..daf13a34c1b 100644 --- a/plugins/ingest/src/test/resources/rest-api-spec/test/ingest/20_crud.yaml +++ b/plugins/ingest/src/test/resources/rest-api-spec/test/ingest/20_crud.yaml @@ -32,7 +32,7 @@ - do: ingest.get_pipeline: - ids: "my_pipeline" + id: "my_pipeline" - match: { my_pipeline._source.description: "_description" } - match: { my_pipeline._version: 1 } @@ -53,7 +53,7 @@ - do: catch: missing ingest.get_pipeline: - ids: "my_pipeline" + id: "my_pipeline" --- "Test invalid config":