'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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source