Changed description for call api
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user