-1
我对REST服务相当陌生。我正在尝试编写一个REST API方法,它将获取对象列表并返回其他一些对象列表。缺少索引0处参数方法的依赖关系
类似:
**@POST
@Path("/nodeinfo/{users}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public List<NodeLabels> getLocalizedLabels(
@PathParam("users") Users users)
throws WebApplicationException {**
return new ArrayList(nodeLabelsIDMap.values());
}
用户仅仅是一个像name
,id
,contact
,country
属性其他对象的用户列表。