Module autopulse::routes::list

source ·
Expand description

GET /list?status={status}&page={page}&limit={limit}&sort={sort}

Returns a list of scan events from the database.

§Query Parameters

  • status: Filter the scan events by process status. Can be one of pending, complete, retry, or failed.
  • page: The page number to retrieve.
  • limit: The number of items to retrieve per page.
  • sort: The field to sort the results by. Can be one of id, file_path, process_status, event_source, created_at, or updated_at.

See list::ListQuery for more information.

§Responses

  • 200 OK: Returns a list of ScanEvent objects.
  • 401 Unauthorized: Returned if the request is not authenticated.

Structs§