0

外部 API 正在使用搜索参数公开资源。

这是目标端点: https://example.com/api/categories/?filter[name]=[somename]&display=full

我正在使用 quarkus 和org.eclipse.microprofile.rest.client.inject.RegisterRestClient. 我试图以某种方式将filter参数与可用参数进行映射,javax.ws.rs但没有运气。

客户端完成了实现,我不想获取参数,我想将它们放入请求中。

 @GET
  @Produces(MediaType.TEXT_XML)
  CategoriesResponse searchCategoryByName(@DefaultValue("full") @QueryParam("display") String display, <How to implement this param> Filter f

有任何想法吗?

4

0 回答 0