10-11-2025

This commit is contained in:
Mohd-Arham
2025-11-10 10:11:26 +05:30
parent cfac612306
commit c67f222957
34 changed files with 1544 additions and 425 deletions
@@ -0,0 +1,32 @@
package com.billpaymentservice.bbps.swagger;
import java.util.List;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.servers.Server;
@Configuration
public class SwaggerConfig {
@Value("${swagger.server.url}")
private String serverUrl;
@Value("${swagger.server.description}")
private String serverDescription;
@Bean
public OpenAPI openAPI() {
return new OpenAPI()
.info(new Info().title("BBPS API").description("Spring Boot REST API for BBPS System API Documentation")
.version("1.0.0").contact(new Contact().name("BBPS ")))
.servers(List.of(new Server().url(serverUrl).description(serverDescription)));
}
}