spring-cloud / spring-cloud-openfeign

Support for using OpenFeign in Spring Cloud apps
Apache License 2.0
1.2k stars 780 forks source link

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

Open XhstormR opened 2 years ago

XhstormR commented 2 years ago

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>>
OlgaMaciaszek commented 2 years ago

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

OlgaMaciaszek commented 2 years ago

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.