Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-1786

Retrieve Audit Entries for a Node

    Details

    • Work Funnel:
      Feature
    • Epic Link:
    • Sprint:
      Repository Sprint 10, Repository Sprint 11
    • Story Points:
      8
    • Work Funnel End:
      2017-08
    • Template:

      Description

      Story
      As a developer using the REST API I want to be able to retrieve a list of audit entries (aka audit trail / logs) for an individual node so that I can build a client with audit management capabilities.

      Acceptance Criteria

      • The GET /nodes/{nodeId}/audit-entries endpoint has been implemented according to the API spec (see REPO-1210)
      • The endpoint is only accessible to a user has read permission on nodeId
      • The logs are ordered by default by createdAt DESC but can be reversed via the orderBy parameter
      • The values property is optional via the include mechanism
      • The where query parameter can be used to filter by createdByUser and createdAt (via BETWEEN operand)
      • JUnit tests are present that test positive and negative use cases
      • TAS tests providing functional coverage of the endpoint are present in the 5.2 TAS branch

      Example Request/Response

      • Similar to REPO-1299 (albeit the auditAppId will be "alfresco-access" only).

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  gcornwell Gavin Cornwell
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel