Skip to content

Commit

Permalink
Added API for count of images by videoreferenceuuid
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Apr 25, 2023
1 parent c45d23f commit 49891dd
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ class FastAnnotationV1Api(daoFactory: JPADAOFactory)(implicit val executor: Exec
}
}

get("/images/count/videoreference/:uuid") {
val uuid = params
.getAs[UUID]("uuid")
.getOrElse(
halt(BadRequest(toJson(ErrorMsg(400, "A video reference 'uuid' parameter is required"))))
)
Future {
val n = repository.countImagesByVideoReferenceUuid(uuid)
val count = Count(n)
toJson(count)
}
}

get("/concept/:concept") {
val concept =
params
Expand Down

0 comments on commit 49891dd

Please sign in to comment.