Skip to content

Commit

Permalink
#466 Add range to retrieve all analyzers
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Mar 22, 2018
1 parent 77e4e93 commit 9aa8b2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CortexClient(val name: String, baseUrl: String, authentication: Option[Cor
}

def listAnalyzer(implicit ec: ExecutionContext): Future[Seq[Analyzer]] = {
request(s"api/analyzer", _.get, _.json.as[Seq[Analyzer]]).map(_.map(_.copy(cortexIds = List(name))))
request(s"api/analyzer?range=all", _.get, _.json.as[Seq[Analyzer]]).map(_.map(_.copy(cortexIds = List(name))))
}

def analyze(analyzerId: String, artifact: CortexArtifact)(implicit ec: ExecutionContext): Future[JsValue] = {
Expand Down

0 comments on commit 9aa8b2c

Please sign in to comment.