addAudit
@PreAuthorize("hasAnyRole(\'INDIVIDUAL\',\'ID_AUTHENTICATION\',\'TEST\', \'REGISTRATION_ADMIN\', \'REGISTRATION_SUPERVISOR\', \'REGISTRATION_OFFICER\', \'REGISTRATION_PROCESSOR\',\'PRE_REGISTRATION\',\'PRE_REGISTRATION_ADMIN\',\'RESIDENT\',\'ZONAL_ADMIN\',\'GLOBAL_ADMIN\')")
@ResponseFilter
@PostMapping(value="/audits",
produces="application/json")
public io.mosip.kernel.core.http.ResponseWrapper<AuditResponseDto> addAudit(@RequestBody @Valid
@Valid io.mosip.kernel.core.http.RequestWrapper<AuditRequestDto> requestDto)
Function to add new audit
- Parameters:
requestDto - AuditRequestDto having required fields for auditing
- Returns:
- The
AuditResponseDto having the status of audit