Auditing
Add support for auditing of changes on Accession
, Inventory
and Cooperator
records.
Add API endpoint only to the InventoryController
:
@PostMapping("/auditlog/{id}")
public List<AuditLog> inventoryAuditLogs(@PathVariable(value="id", required=true) long inventoryId) {
..
return auditService.listAuditLogs(inventoryService.get(inventoryId));
}