Skip to content

Commit c7f737b

Browse files
joelwurtzpolyfractal
authored andcommitted
Allow to get multiple pipelines without id (#453)
1 parent 68e819b commit c7f737b

File tree

1 file changed

+2
-5
lines changed
  • src/Elasticsearch/Endpoints/Ingest/Pipeline

1 file changed

+2
-5
lines changed

src/Elasticsearch/Endpoints/Ingest/Pipeline/Get.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ class Get extends AbstractEndpoint
2323
public function getURI()
2424
{
2525
if (isset($this->id) !== true) {
26-
throw new Exceptions\RuntimeException(
27-
'id is required for GetPipeline'
28-
);
26+
return '/_ingest/pipeline/*';
2927
}
3028

3129
$id = $this->id;
32-
$uri = "/_ingest/pipeline/$id";
3330

34-
return $uri;
31+
return "/_ingest/pipeline/$id";
3532
}
3633

3734
/**

0 commit comments

Comments
 (0)