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

pageinteger
canonical_urlstring nullable

Response

Successful Response

total_pagesinteger 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 // to the response with the status

    • info

      added the required property // to the response with the status