spring-cloud-openfeign
spring-cloud-openfeign copied to clipboard
How to use FeignClient and @QuerydslPredicate annotation together, or is it supported?
I have an interface for declaring the API, this is one of the methods:
@GetMapping
fun getPhraseList(
@Parameter(hidden = true) assembler: PagedResourcesAssembler<PhraseResponse>,
@Parameter(hidden = true) @PageableDefault(sort = [Const.DEFAULT_SORT]) pageable: Pageable,
@Parameter(hidden = true) @QuerydslPredicate(root = Phrase::class) predicate: Predicate?
): PagedModel<EntityModel<PhraseResponse>>
There's no dedicated support in SC OpenFeign added for this at this point. PRs are welcome.
Actually, while it makes sense for the server, at this point I'm not convinced it should be added to the clients, so we'll not be adding it for now. However, feel free to start a discussion here.