in src/main/java/com/epam/digital/data/platform/restapi/core/audit/ControllerAuditAspect.java [124:135]
Object auditPatchPutUpdate(ProceedingJoinPoint joinPoint, UUID id, Object dto, RequestContext context,
SecurityContext securityContext) throws Throwable {
var annotation = getAnnotation(joinPoint);
if (annotation.equals(PutMapping.class) || annotation.equals(PatchMapping.class)) {
return prepareAndSendRestAudit(joinPoint, UPDATE, id, securityContext);
} else {
throw new AuditException("Cannot save audit for this HTTP method. Not supported annotation: @"
+ annotation.getSimpleName());
}
}