Skip to main content

api_entry_list

Function api_entry_list 

Source
pub fn api_entry_list(
    corpus: &str,
    service: &str,
    severity: &str,
    category: &str,
    what: &str,
    offset: Option<i64>,
    page_size: Option<i64>,
    pool: &State<DbPool>,
) -> Result<Json<EntryListDto>, Status>
Expand description

Lists the documents affected by a (corpus, service, severity, category, what) — the agent twin of the deepest report screen (the entry list). Paginated (offset/page_size, default 100, max MAX_REPORT_PAGE_SIZE); offset is capped at MAX_REPORT_OFFSET (a 400 beyond it — see P-4). 400 on an unknown severity, 404 on an unknown corpus/service.