API App¶
src.api.app ¶
delete_by_id ¶
delete_by_id(rec_id)
Delete a stored analysis by id.
Source code in src/api/app.py
142 143 144 145 146 147 148 149 |
|
fetch_by_id ¶
fetch_by_id(rec_id)
Return stored analysis JSON for a specific record id.
Source code in src/api/app.py
133 134 135 136 137 138 139 140 |
|
fetch_by_sha256 ¶
fetch_by_sha256(hash)
Return stored analysis JSON for the most recent record with given sha256.
Source code in src/api/app.py
124 125 126 127 128 129 130 131 |
|
healthz ¶
healthz()
Lightweight healthcheck endpoint.
Source code in src/api/app.py
40 41 42 43 |
|
list_analyses ¶
list_analyses(page=Query(1, ge=1), page_size=Query(20, ge=1, le=200), sha256=Query(None), sha1=Query(None), md5=Query(None), date_from=Query(None, description='ISO8601 inclusive lower bound'), date_to=Query(None, description='ISO8601 inclusive upper bound'))
List analyses with pagination and optional filters.
Items exclude heavy result payloads; use fetch endpoints to retrieve full result JSON.
Source code in src/api/app.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
purge_by_sha256 ¶
purge_by_sha256(sha256=Query(..., description='sha256 to purge'))
Delete all records for a given sha256.
Source code in src/api/app.py
151 152 153 154 155 156 |
|
ti_lookup ¶
ti_lookup(req)
Lookup a hash across TI providers and return a normalized summary.
Supports sha256 (VT, HA, MB, OTX) and md5 (MB, OTX).
Source code in src/api/app.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|