diff --git a/src/main/java/com/indexzero/finals/controller/EmployeeController.java b/src/main/java/com/indexzero/finals/controller/EmployeeController.java index d89f831..a88dfdf 100644 --- a/src/main/java/com/indexzero/finals/controller/EmployeeController.java +++ b/src/main/java/com/indexzero/finals/controller/EmployeeController.java @@ -105,9 +105,14 @@ public class EmployeeController { return employeeService.getEmployeeByLogin(login); } - @GetMapping("/coffee") - public ResponseEntity coffee() { - return new ResponseEntity<>(HttpStatus.I_AM_A_TEAPOT); + @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 coffee() { + return new ResponseEntity<>("I Am A Teapot", HttpStatus.I_AM_A_TEAPOT); } }