You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Get(value = "/pets{?paginationCommand*}")
fun showPetById(paginationCommand: PaginationCommand): HttpResponse<Pet> {
....
}
PaginationCommand class -
data class PaginationCommand(val offset: Int = 0, val limit: Int = 10)
We should be able to take default values from yaml. Also, micronaut needs default values for POJOs mapped from requests, so will have to be made mandatory in apifi for request param models to be mapped as POJOs.
The text was updated successfully, but these errors were encountered:
Sample input:
Sample output:
Controller method -
PaginationCommand
class -We should be able to take default values from yaml. Also, micronaut needs default values for POJOs mapped from requests, so will have to be made mandatory in apifi for request param models to be mapped as POJOs.
The text was updated successfully, but these errors were encountered: