File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
spring-boot-modules/spring-boot-springdoc/src/main
java/com/baeldung/swaggeryml Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 11package com .baeldung .swaggeryml ;
22
3- import org .springframework .boot .SpringApplication ;
43import org .springframework .boot .autoconfigure .SpringBootApplication ;
54import org .springframework .boot .builder .SpringApplicationBuilder ;
65
76@ SpringBootApplication
87public class SwaggerYMLApplication {
9-
10- public static void main (String [] args ) {
11- new SpringApplicationBuilder (SwaggerYMLApplication .class )
12- .properties ("spring.config.name=application-yml" )
13- .run (args );
14- }
15-
16- }
8+ public static void main (String [] args ) {
9+ new SpringApplicationBuilder (SwaggerYMLApplication .class )
10+ .properties ("spring.config.name=application-yml" )
11+ .run (args );
12+ }
13+ }
Original file line number Diff line number Diff line change 33 title : Student API
44 description : Following documentation explain the API's supported by the [student server](http://localhost:8080).
55 version : 1.1.9
6-
76servers :
87 - url : http://localhost:8080/v1
98 description : Prod server
@@ -15,7 +14,6 @@ servers:
1514 - us-east
1615 - url : http://localhost:8080/test
1716 description : Test server
18-
1917paths :
2018 /students :
2119 get :
3129 schema :
3230 type : array
3331 items :
34- $ref : ' ./components/schemas/Student.yml'
35-
32+ $ref : ' ./components/schemas/Student.yml'
3633 /students/{id} :
3734 get :
3835 tags :
5855 $ref : ' ./components/schemas/Student.yml'
5956externalDocs :
6057 description : Learn more about student operations provided by this API.
61- url : http://localhost:8080/swagger-ui/index.html
58+ url : http://localhost:8080/swagger-ui/index.html
You can’t perform that action at this time.
0 commit comments