I have a method with a request parameter and I'm trying to link to this method from another resource. I want the link to be something like this:
"rel":{
"href":".../resources{?param}",
"templated":true
}
I tried the following without success:
//First attempt
resources.add(linkTo(methodOn(Controller.class).method(null)).withRel("rel")
//Second attempt
resources.add(linkTo(methodOn(Controller.class).method("{parameter}")).withRel("rel")
//Third attempt
resources.add(entityLinks.linkToCollectionResource(LinkedResource.class).withRel("rel");