docs: punkt 11 (documentation) — README, infrastructure, monitoring, admin-guide, deploy-guide, api-docs, PROGRESS, ENTERPRISE_READINESS_PLAN all updated
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# LeoCRM API Documentation
|
||||
|
||||
> Auto-generated from FastAPI route enumeration. **295 endpoints** across **30 tag groups**.
|
||||
> Auto-generated from FastAPI route enumeration. **303 endpoints** across **31 tag groups**.
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -228,12 +228,16 @@ List endpoints use `page` (1-based) and `page_size` (1-100) query parameters. Re
|
||||
| PATCH | `/api/v1/sequences/{sequence_id}` | Update a sequence. |
|
||||
| DELETE | `/api/v1/sequences/{sequence_id}` | Delete a sequence. |
|
||||
|
||||
### system-settings (2 endpoints)
|
||||
### system-settings (6 endpoints)
|
||||
|
||||
| Method | Path | Description |
|
||||
|--------|------|-------------|
|
||||
| GET | `/api/v1/system-settings` | Get system settings. **Response**: `SystemSettingsResponse` |
|
||||
| PUT | `/api/v1/system-settings` | Upsert system settings. **Request**: `SystemSettingsUpsert`, **Response**: `SystemSettingsResponse` |
|
||||
| GET | `/api/v1/system-settings/backup-config` | Get backup configuration (backup_enabled, backup_interval, backup_retention_days, backup_destination). |
|
||||
| PUT | `/api/v1/system-settings/backup-config` | Update backup configuration. Admin only. |
|
||||
| POST | `/api/v1/system-settings/backup-now` | Trigger an immediate backup via ARQ job. Admin only. Returns `{"message": "Backup job enqueued", "job_id": "..."}`. |
|
||||
| GET | `/api/v1/system-settings/backup-history` | Get last 10 backup results from audit log. Returns `{"history": [...]}`. |
|
||||
|
||||
### attachments (4 endpoints)
|
||||
|
||||
@@ -253,11 +257,20 @@ List endpoints use `page` (1-based) and `page_size` (1-100) query parameters. Re
|
||||
| PATCH | `/api/v1/addresses/{address_id}` | Update an address. |
|
||||
| DELETE | `/api/v1/addresses/{address_id}` | Delete an address. |
|
||||
|
||||
### audit (1 endpoint)
|
||||
### audit (4 endpoints)
|
||||
|
||||
| Method | Path | Description |
|
||||
|--------|------|-------------|
|
||||
| GET | `/api/v1/audit-log` | Query audit log entries. |
|
||||
| GET | `/api/v1/audit-log` | Query audit log entries (filterable, paginated, admin-only). |
|
||||
| GET | `/api/v1/audit-log/export` | Export audit log as CSV or JSON (streaming, max 10.000 entries). **Query**: `format` (csv/json), `entity_type`, `action`, `date_from`, `date_to` |
|
||||
| DELETE | `/api/v1/audit-log/retention` | Delete audit log entries older than retention_days (default 365, admin-only). **Query**: `retention_days` (1-3650) |
|
||||
|
||||
### system (2 endpoints)
|
||||
|
||||
| Method | Path | Description |
|
||||
|--------|------|-------------|
|
||||
| GET | `/api/v1/system/dashboard` | Comprehensive system dashboard (admin-only). Returns: health, DB stats, Redis stats, worker stats, API stats, plugin stats, storage stats. |
|
||||
| GET | `/api/v1/system/alerts` | Active system alerts (admin-only). Returns alerts from Communication-System. |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user