File tree Expand file tree Collapse file tree
src/main/java/umc/tosee/global/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package umc .tosee .global .config ;
22
33
4+ import io .swagger .v3 .oas .models .Components ;
45import io .swagger .v3 .oas .models .OpenAPI ;
56import io .swagger .v3 .oas .models .info .Info ;
67import io .swagger .v3 .oas .models .servers .Server ;
8+ import org .springdoc .core .models .GroupedOpenApi ;
79import org .springframework .context .annotation .Bean ;
810import org .springframework .context .annotation .Configuration ;
911
@@ -18,7 +20,14 @@ public OpenAPI swagger() {
1820 .version ("0.0.1" );
1921
2022 return new OpenAPI ()
21- .info (info )
22- .addServersItem (new Server ().url ("/" ));
23+ .components (new Components ())
24+ .info (info );
25+ }
26+ @ Bean
27+ public GroupedOpenApi userApi () {
28+ return GroupedOpenApi .builder ()
29+ .group ("memory API" )
30+ .pathsToMatch ("/api/memories/**" )
31+ .build ();
2332 }
2433}
You can’t perform that action at this time.
0 commit comments