Creation of an LO and all PATCH requests to local LOs are persisted in audit trail
The creation of a local LO and all subsequent changes applied to it via patch requests are recorded in an audit trail for this LO.
Acceptance criteria
- The creation of a local LO as well as all susequent changes (patch requests) to this LO are kept in an audit trail which is associated to this object.
- Audit trail relevant changes include successfully applied patches as well as rejected ones. The audit trail does not keep track of patch requests that have been rejected due to formal issues with HTTP status code 4xx.
- The PATCH request is part of a newly created ChangeRequest object in the audit trail. A ChangeRequest includes the follwing information (excerpt, please refer to API description):
- The full PATCH request (as copy)
- Failure/success status
- Date and time
- Errors (if occured)
- Initial version of LO
Reference
API description: https://github.com/IATA-Cargo/ONE-Record/blob/master/working_draft/API/ONE%20Record%20API%20Specification%20-%20markdown%20draft.md
Edited by Volker Wassmuth