@GetMapping(value = "/", produces = MediaTypes.HAL_JSON_VALUE) public ResourceSupport root() { ResourceSupport rootResource = new ResourceSupport(); rootResource.add( linkTo(methodOn(EmployeeController.class).root()).withSelfRel(), linkTo(methodOn(EmployeeController.class).findAll()).withRel("employees")); return rootResource; }
@GetMapping(value = "/", produces = MediaTypes.HAL_JSON_VALUE) public ResourceSupport root() { ResourceSupport rootResource = new ResourceSupport(); rootResource.add( linkTo(methodOn(EmployeeController.class).root()).withSelfRel(), linkTo(methodOn(EmployeeController.class).findAll()).withRel("employees")); return rootResource; }