GET /api/v1/entities/{name}/{guid}/audit
Read Audit
Audit trail for one row, projected from lifecycle_log.
Latest first. A multi-field edit is expanded into one event per field.
Авторизация: нужен Authorization: Bearer <token>
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/entities/<name>/<guid>/audit" \ -H "Authorization: Bearer <token>"Ответ 200
Заголовок раздела «Ответ 200»В контракте нет примера для этого ответа; схема: массив AuditEvent. Поля — в интерактивном обозревателе.
Возвращает
Заголовок раздела «Возвращает»массив AuditEvent — Successful Response
| Поле | Тип | Описание |
|---|---|---|
action | string | |
actor | string | |
field_changed | string | null (opt.) | |
lcstep | integer | null (opt.) | |
new_value | object (opt.) | |
old_value | object (opt.) | |
timestamp | string |
Параметры
Заголовок раздела «Параметры»| Параметр | Где | Обязателен | Тип | По умолчанию | Ограничения | Описание |
|---|---|---|---|---|---|---|
name | path | да | string | — | — | |
guid | path | да | integer | — | — | |
limit | query | нет | integer | 50 | min 1; max 500 |
| Код | Смысл | Тело |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
Тело любой ошибки — {detail, code?, request_id, doc_url}: request_id — что цитировать, doc_url ведёт в Справочник ошибок.