Changed description for call api

This commit is contained in:
harish
2024-08-22 16:56:44 +05:30
parent 7c169d3f42
commit 6fc8ad991d
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ public class CallDao {
validateDocumentEntity(documentReq.getId(),documentReq.getFileName());
DocumentEntity documentEntity = documentRepository.findById(documentReq.getId());
if(documentEntity==null){
throw new ResourceNotFoundException(Status.VALIDATION_ERROR,GepafinConstant.DOCUMENT_NOT_FOUND);
throw new ResourceNotFoundException(Status.VALIDATION_ERROR,Translator.toLocale(GepafinConstant.DOCUMENT_NOT_FOUND));
}
documentEntity.setFileName(documentReq.getFileName());
documentEntity.setFilePath(documentReq.getUrl());

View File

@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RequestBody;
public interface CallApi {
@Operation(summary = "API to create call",
@Operation(summary = "Api to create call",
responses = {
@ApiResponse(responseCode = "200", description = "OK"),
@ApiResponse(responseCode = "404", description = "Not Found", content = @Content(mediaType = MediaType.APPLICATION_JSON_VALUE, examples = {