Having a code like the following:
@RequestMapping(value = "/items", method = RequestMethod.GET)
public ItemList getItems(@Valid @ModelAttribute ItemQuery listRequest)
{
responseItems.add(linkTo(methodOn(ItemController.class).getItems(listRequest.nextOwner())).withRel("next-owner"));
}
where ItemQuery
keeps query properties like ownerId, offset, limit
Is it possible to add a link containing all the ModelAttribute
properties as query parameters: