File tree Expand file tree Collapse file tree
investmentservice/src/main/java
userservice/src/main/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import io .swagger .v3 .oas .models .OpenAPI ;
2+ import io .swagger .v3 .oas .models .info .Info ;
3+ import org .springframework .context .annotation .Bean ;
4+ import org .springframework .context .annotation .Configuration ;
5+
6+ @ Configuration
7+ public class OpenApiConfig {
8+ @ Bean
9+ public OpenAPI customOpenAPI () {
10+ return new OpenAPI ()
11+ .info (new Info ()
12+ .title ("Investment Service API" )
13+ .version ("1.0" )
14+ .description ("Documentation for the Investment Service API" ));
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ import io .swagger .v3 .oas .models .OpenAPI ;
2+ import io .swagger .v3 .oas .models .info .Info ;
3+ import org .springframework .context .annotation .Bean ;
4+ import org .springframework .context .annotation .Configuration ;
5+
6+ @ Configuration
7+ public class OpenApiConfig {
8+ @ Bean
9+ public OpenAPI customOpenAPI () {
10+ return new OpenAPI ()
11+ .info (new Info ()
12+ .title ("User Service API" )
13+ .version ("1.0" )
14+ .description ("Documentation for the User Service API" ));
15+ }
16+ }
You can’t perform that action at this time.
0 commit comments