events

Returns a list of all events for a jurisdiction, ordered from newest to oldest.

Args: user (DbUser): The user making the request. db (AsyncDatabaseConnection): Database connection. logger (Logger): Standard logger. page (int): page of events to return to the client. canonical_url (str | None): An optional filter on the condition.

Returns: EventResponse: A bundle with - Total page count - The list of AuditEvents relevant for the (optional) filter - The list of condition information with potentially filter-able data

get/api/v1/events/

Request

  • The document declares no server URL.
  • Auth
    none declared

Query parameters

page, integer
canonical_url, string nullable

Response

Successful Response

EventsResponse required

Response needed for the audit log page.

audit_events, AuditEvent[] required
configuration_options, EventFilterOption[] required
total_pages, integer required

Changes

    • breaking

      response property audit_events/items/condition_id list-of-types was widened by adding types null to media type application/json of response 200

    • info

      added the required property audit_events/items/code_count to the response with the status

    • info

      added the required property audit_events/items/has_custom_code_upload_events to the response with the status