BAEL-4710 - Hiding endpoints using @Hidden (#10431)
* Added code for checking if a class is abstract or not. * Renamed test name as per review comments. * BAEL-4695 - Added code to evaluate math expressions. * BAEL-4695 - Added test case for math function. * BAEL-4695 Added consistent examples and entry in parent pom. * BAEL-4695 - Added more examples * BAEL-4710 - Hiding endpoints using @Hidden
This commit is contained in:
parent
e8569d56b0
commit
b018825dc4
|
@ -0,0 +1,31 @@
|
|||
package com.baeldung.springdoc.controller;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
|
||||
@Hidden
|
||||
@RestController
|
||||
public class RegularRestController {
|
||||
|
||||
@Hidden
|
||||
@GetMapping("/getAuthor")
|
||||
public String getAuthor() {
|
||||
return "Umang Budhwar";
|
||||
}
|
||||
|
||||
@GetMapping("/getDate")
|
||||
public LocalDate getDate() {
|
||||
return LocalDate.now();
|
||||
}
|
||||
|
||||
@GetMapping("/getTime")
|
||||
public LocalTime getTime() {
|
||||
return LocalTime.now();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue