10-11-2025
This commit is contained in:
@@ -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)));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user