# SWI API — route index

Full documentation: **[API_DOCUMENTATION.md](./API_DOCUMENTATION.md)**

**Base:** `/api/swi` — port `5000` (unified) or `5002` (standalone)

| Auth | Method | Path |
|------|--------|------|
| — | GET | `/health` |
| — | POST | `/auth/login` |
| Bearer | CRUD | `/{table}` … see full doc |
| Admin | GET/POST/PUT/DELETE | `/admin/icons`, `/admin/icons/:icon_id` |

**SWI tables:** `swi_job_area`, `swi_document_status`, `swi_document`, `swi_document_page_map`, `swi_text_blocks`, `swi_text_block_icons`, `swi_images` (logos: `/admin/icons`)

**Shared (auth):** `locations`, `departments`, `location_departments`, `job_title`, `tickets*`

**Shared (admin):** `country`, `roles`, `user_role`, `account_status`, `users`, `users_logs`
