Skip to content

Commit

Permalink
Allow to get multiple pipelines without id (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwurtz authored and polyfractal committed Aug 11, 2016
1 parent 68e819b commit c7f737b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Elasticsearch/Endpoints/Ingest/Pipeline/Get.php
Expand Up @@ -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";
}

/**
Expand Down

0 comments on commit c7f737b

Please sign in to comment.