Skip to content

Commit 42eeeda

Browse files
committed
formating code
1 parent 36a5b03 commit 42eeeda

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
package com.baeldung.swaggeryml;
22

3-
import org.springframework.boot.SpringApplication;
43
import org.springframework.boot.autoconfigure.SpringBootApplication;
54
import org.springframework.boot.builder.SpringApplicationBuilder;
65

76
@SpringBootApplication
87
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+
}

spring-boot-modules/spring-boot-springdoc/src/main/resources/static/openapi.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ info:
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-
76
servers:
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-
1917
paths:
2018
/students:
2119
get:
@@ -31,8 +29,7 @@ paths:
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:
@@ -58,4 +55,4 @@ paths:
5855
$ref: './components/schemas/Student.yml'
5956
externalDocs:
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

0 commit comments

Comments
 (0)