title: Filling entity links in custom @RepositoryRestController methods
body: <p>I am using Spring-data-rest to provide read APIs over some JPA entities.
  For writes I need to issue Command objects rather than directly write to the DB, so I added a custom controller using <code>@RepositoryRestController</code> and various command handling methods:</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.POST)
  public @ResponseBody MyEntity post(@RequestBody MyEntity entity) {
    String createdId = commands.sendAndWait(new MyCreateCommand(entity));
    return repo.findOne(createdId);
  }
  </code></pre>
  
  <p>I would like the output to be enriched just like any other response by the spring-data-rest controller, in particular I want it to add HATEOAS links to itself and its relations.</p>