spring-cloud-openfeign icon indicating copy to clipboard operation
spring-cloud-openfeign copied to clipboard

How to use FeignClient and @QuerydslPredicate annotation together, or is it supported?

Open XhstormR opened this issue 2 years ago • 2 comments

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

XhstormR avatar Dec 17 '21 07:12 XhstormR

There's no dedicated support in SC OpenFeign added for this at this point. PRs are welcome.

OlgaMaciaszek avatar Dec 23 '21 10:12 OlgaMaciaszek

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.

OlgaMaciaszek avatar Feb 14 '22 18:02 OlgaMaciaszek