@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
  @ResponseBody
  public ResourceSupport links() {
    ResourceSupport resource = new ResourceSupport();

    resource.add(linkTo(LoggingHateoasMvcEndpoint.class).slash(this.getPath()).withSelfRel());
    resource.add(
        linkTo(LoggingHateoasMvcEndpoint.class)
            .slash(this.getPath() + "/logger")
            .withRel("logger"));
    resource.add(
        linkTo(LoggingHateoasMvcEndpoint.class).slash(this.getPath() + "/log").withRel("log"));

    return resource;
  }
 @RequestMapping("")
 public ResourceSupport home() {
   ResourceSupport resource = new ResourceSupport();
   resource.add(linkTo(SpringBootHypermediaApplication.class).slash("/").withSelfRel());
   return resource;
 }