File tree Expand file tree Collapse file tree
spring-boot/spring-boot-codefirst
java/io/reflectoring/codefirst Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ repositories {
1919}
2020
2121dependencies {
22- implementation ' org.springframework.boot:spring-boot-starter-actuator'
2322 implementation ' org.springframework.boot:spring-boot-starter-web'
2423 implementation ' org.springframework.boot:spring-boot-starter-security'
2524 implementation ' org.springdoc:springdoc-openapi-ui:1.3.3'
Original file line number Diff line number Diff line change @@ -65,15 +65,6 @@ interface TodoApi {
6565 void delete (@ PathVariable String id );
6666}
6767
68- @ RequestMapping ("/unsecured" )
69- @ Tag (name = "Unsecured API" , description = "aliquet nec ullamcorper sit amet risus nullam eget felis eget" )
70- interface UnsecuredApi {
71-
72- @ GetMapping
73- @ ResponseStatus (code = HttpStatus .OK )
74- String unsecured ();
75- }
76-
7768@ OpenAPIDefinition (
7869 info = @ Info (
7970 title = "Code-First Approach (reflectoring.io)" ,
@@ -166,13 +157,4 @@ public void onInit() {
166157 .map (todo -> new Todo (UUID .randomUUID ().toString (), todo ))
167158 .collect (Collectors .toList ());
168159 }
169- }
170-
171- @ RestController
172- class Unsecured implements UnsecuredApi {
173-
174- @ Override
175- public String unsecured () {
176- return "unsecured" ;
177- }
178160}
Original file line number Diff line number Diff line change 11springdoc :
22 api-docs :
33 path : /reflectoring-openapi
4- show-actuator : true
5- management :
6- endpoints :
7- web :
8- exposure :
9- include : " *"
You can’t perform that action at this time.
0 commit comments