I use ControllerLinkBuilder to create an index of links pointing to a list of Spring MVC controllers.
For example:
ResourceSupport resource = new ResourceSupport(); resource.add(linkTo(methodOn(ReactorController.class).sendmail(EventBody)).withRel(REACTOR_REL));
This generates:
"reactor": [ { "href": "http://localhost:12345/main/reactor/sendmail" } ]
In the example it is a POST to sendmail that is expected! What is the way to document that a POST is expected ?