File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/main/java/br/com/catalog/configs Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ package br .com .catalog .configs ;
2
+
3
+ import io .swagger .v3 .oas .models .OpenAPI ;
4
+ import io .swagger .v3 .oas .models .info .Contact ;
5
+ import io .swagger .v3 .oas .models .info .Info ;
6
+ import io .swagger .v3 .oas .models .info .License ;
7
+ import org .springframework .context .annotation .Bean ;
8
+ import org .springframework .context .annotation .Configuration ;
9
+
10
+ @ Configuration
11
+ public class DocSwaggerConfig {
12
+ @ Bean
13
+ public OpenAPI openAPI () {
14
+ return new OpenAPI ()
15
+ .info (new Info ()
16
+ .title ("API de gerenciamento de produtos" )
17
+ .description ("CRUD de produtos e marcas + operações de domínio" )
18
+ .version ("v1" )
19
+ .license (new License ().name ("MIT License" ).url ("https://opensource.org/licenses/MIT" ))
20
+ .
contact (
new Contact ().
name (
"maxjdev" ).
email (
"[email protected] " ).
url (
"https://www.linkedin.com/in/maxjdev/" )));
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments