Compare commits

...

3 Commits

Author SHA1 Message Date
4d78738b84 Centered Teapot 2025-02-20 11:04:30 +03:00
bcf9b00a2f I Am A Teapot 2025-02-20 10:59:49 +03:00
eb9e702545 I Am A Teapot 2025-02-20 10:57:42 +03:00

View File

@ -105,4 +105,14 @@ public class EmployeeController {
return employeeService.getEmployeeByLogin(login);
}
@GetMapping("/coffee")@Operation(description = "I Am A Teapot", summary = "I Am A Teapot")
@ApiResponses(value = {
@ApiResponse(responseCode = "418", description = "I Am A Teapot"),
@ApiResponse(responseCode = "401", description = "Unauthorized"),
})
public ResponseEntity<String> coffee() {
return new ResponseEntity<>("<center><h1>I Am A Teapot</h1></center>", HttpStatus.I_AM_A_TEAPOT);
}
}