【发布时间】:2016-10-10 09:05:33
【问题描述】:
所需的 URL 应该是这样的:
http://<host>:<port>/path/item?<arguments>
参数键和值应该是多个动态的,所以我不能使用@BeanParam 或@QueryParam。另外我只能调用这个接口而不执行。
我当前的代码是这样的:
public interface RestService {
@GET
@Path("/path/item")
@Produces(MediaType.APPLICATION_JSON)
public JsonNode method(@QueryParam("params") String params);
}
我想传递的参数示例:brand=myBrand&price=myPrice
有没有办法做这样的事情?
我的参考资料:
【问题讨论】:
标签: web-services rest resteasy