Razvan
01/15/2021, 11:24 AMQuery.composite
lens for injecting an object in the request, In the doc you give the example:
val pageable = Query.composite {
Pageable(
boolean().defaulted("sortAscending", true)(it),
int().defaulted("page", 1)(it),
int().defaulted("maxResults", 20)(it)
)
}
but it creates a Pageable object from the request. Is it possible to make it bidirectionnal and use the lens to inject these query parms from the object in order to use it like ?
Response(OK).with(
pageable of pageableObject
)
ZipkinTraces
private val lens = Header.composite(get(), set())