@PostMapping("/employees")
	ResponseEntity<EntityModel<Employee>> newEmployee(@RequestBody Employee employee) {

		try {
			Employee savedEmployee = repository.save(employee);

			EntityModel<Employee> employeeResource = EntityModel.of(savedEmployee, //
					linkTo(methodOn(EmployeeController.class).findOne(savedEmployee.getId())).withSelfRel());

			return ResponseEntity //
					.created(new URI(employeeResource.getRequiredLink(IanaLinkRelations.SELF).getHref())) //
					.body(employeeResource);
		}
		catch (URISyntaxException e) {
			return ResponseEntity.badRequest().body(null);
		}
	}
Look up all employees, and transform them into a REST collection resource. Then return them through Spring Web's
{@link ResponseEntity} fluent API.
springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/java/test/org/springdoc/api/v30/app4/EmployeeController.java