1 year ago
#370027
rjjdv
Is there a nice and clean way to handle multiple query params in Quarkus?
I'm creating REST resources in Quarkus using Kotlin. Now I was wondering whether there's a nice and clean way to handle query params. I'm also using Hibernate Panache, and ideally I'd like to have something like this:
@GET
fun getAllCustomers(@Context uriInfo: UriInfo): List<Customer>? = customerRepository.list(uriInfo.queryParameters)
Would something like this be possible?
hibernate
kotlin
quarkus
quarkus-panache
0 Answers
Your Answer