I Am A Teapot
This commit is contained in:
parent
eb9e702545
commit
bcf9b00a2f
@ -105,9 +105,14 @@ public class EmployeeController {
|
|||||||
return employeeService.getEmployeeByLogin(login);
|
return employeeService.getEmployeeByLogin(login);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/coffee")
|
@GetMapping("/coffee")@Operation(description = "I Am A Teapot", summary = "I Am A Teapot")
|
||||||
public ResponseEntity<HttpStatusCode> coffee() {
|
@ApiResponses(value = {
|
||||||
return new ResponseEntity<>(HttpStatus.I_AM_A_TEAPOT);
|
@ApiResponse(responseCode = "418", description = "I Am A Teapot"),
|
||||||
|
@ApiResponse(responseCode = "401", description = "Unauthorized"),
|
||||||
|
})
|
||||||
|
|
||||||
|
public ResponseEntity<String> coffee() {
|
||||||
|
return new ResponseEntity<>("I Am A Teapot", HttpStatus.I_AM_A_TEAPOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user