Skip to content

Commit ef5bf24

Browse files
committed
Added swagger documentation for User and investment service
1 parent 912b492 commit ef5bf24

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

0 commit comments

Comments
 (0)