From c7f737b479a4d37bd6b56fd9ee1931505abe66e6 Mon Sep 17 00:00:00 2001 From: Joel Wurtz Date: Thu, 11 Aug 2016 21:38:05 +0200 Subject: [PATCH] Allow to get multiple pipelines without id (#453) --- src/Elasticsearch/Endpoints/Ingest/Pipeline/Get.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Elasticsearch/Endpoints/Ingest/Pipeline/Get.php b/src/Elasticsearch/Endpoints/Ingest/Pipeline/Get.php index 6540426ba..d5cf38fca 100644 --- a/src/Elasticsearch/Endpoints/Ingest/Pipeline/Get.php +++ b/src/Elasticsearch/Endpoints/Ingest/Pipeline/Get.php @@ -23,15 +23,12 @@ class Get extends AbstractEndpoint public function getURI() { if (isset($this->id) !== true) { - throw new Exceptions\RuntimeException( - 'id is required for GetPipeline' - ); + return '/_ingest/pipeline/*'; } $id = $this->id; - $uri = "/_ingest/pipeline/$id"; - return $uri; + return "/_ingest/pipeline/$id"; } /**