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 1
1
package com .baeldung .swaggeryml ;
2
2
3
- import org .springframework .boot .SpringApplication ;
4
3
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
4
import org .springframework .boot .builder .SpringApplicationBuilder ;
6
5
7
6
@ SpringBootApplication
8
7
public 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 3
3
title : Student API
4
4
description : Following documentation explain the API's supported by the [student server](http://localhost:8080).
5
5
version : 1.1.9
6
-
7
6
servers :
8
7
- url : http://localhost:8080/v1
9
8
description : Prod server
@@ -15,7 +14,6 @@ servers:
15
14
- us-east
16
15
- url : http://localhost:8080/test
17
16
description : Test server
18
-
19
17
paths :
20
18
/students :
21
19
get :
31
29
schema :
32
30
type : array
33
31
items :
34
- $ref : ' ./components/schemas/Student.yml'
35
-
32
+ $ref : ' ./components/schemas/Student.yml'
36
33
/students/{id} :
37
34
get :
38
35
tags :
58
55
$ref : ' ./components/schemas/Student.yml'
59
56
externalDocs :
60
57
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