arham khan
This commit is contained in:
@@ -118,8 +118,8 @@ public class ComplainServiceImpl implements ComplainService {
|
||||
|
||||
Optional<TransactionMaster> dataById = transactionMasterRepository.findById(complainRequestDTO.getTxnId());
|
||||
if (dataById == null || dataById.isEmpty()) {
|
||||
LOGGER.warn("Master Data By Id is null");
|
||||
throw new CustomException("Master Data is required", "FAILED", BBPSConstant.BADREQUEST, null);
|
||||
LOGGER.warn("Txn Id is null");
|
||||
throw new CustomException("Txn Id is required", "FAILED", BBPSConstant.BADREQUEST, null);
|
||||
}
|
||||
|
||||
TransactionMaster transData = dataById.get();
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
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;
|
||||
@@ -9,6 +11,7 @@ import io.swagger.v3.oas.models.info.Contact;
|
||||
import io.swagger.v3.oas.models.info.Info;
|
||||
import io.swagger.v3.oas.models.security.SecurityRequirement;
|
||||
import io.swagger.v3.oas.models.security.SecurityScheme;
|
||||
import io.swagger.v3.oas.models.servers.Server;
|
||||
|
||||
@Configuration
|
||||
public class SwaggerConfig {
|
||||
@@ -25,9 +28,10 @@ public class SwaggerConfig {
|
||||
.components(new io.swagger.v3.oas.models.Components().addSecuritySchemes("Authentication",
|
||||
new SecurityScheme().name("Authentication").type(SecurityScheme.Type.APIKEY)
|
||||
.in(SecurityScheme.In.HEADER)))
|
||||
.info(new Info().title("Spring Boot REST API").description("Spring Boot REST API for BBPS")
|
||||
.version("1.0.0").contact(new Contact().name("Globots").url(serverUrl)
|
||||
.email("info@merchantpanel.com")));
|
||||
.info(new Info().title("Spring Boot REST API").description("Spring Boot REST API for BBPS Project")
|
||||
.version("1.0.0").contact(new Contact().email("info@merchantpanel.com")))
|
||||
.servers(List.of(new Server().url(serverUrl).description(serverDescription)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user