Skip to content

Commit 5a26bc8

Browse files
committed
contact
1 parent 0f1ceba commit 5a26bc8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/org/sadtech/example/swagger/config/SwaggerConfig.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package org.sadtech.example.swagger.config;
22

33
import io.swagger.v3.oas.models.OpenAPI;
4+
import io.swagger.v3.oas.models.info.Contact;
45
import io.swagger.v3.oas.models.info.Info;
56
import org.springframework.context.annotation.Bean;
67
import org.springframework.context.annotation.Configuration;
78

89
/**
9-
*
1010
* @author upagge 30.12.2020
1111
*/
1212
@Configuration
@@ -19,6 +19,12 @@ public OpenAPI customOpenAPI() {
1919
new Info()
2020
.title("Loyalty System Api")
2121
.version("1.0.0")
22+
.contact(
23+
new Contact()
24+
.email("me@upagge.ru")
25+
.url("https://uPagge.ru")
26+
.name("Struchkov Mark")
27+
)
2228
);
2329
}
2430

0 commit comments

Comments
 (0)