cicc-6s/v1 (Plugin: cicc-6s-api)
Authentication
| Method | Endpoint | Mô tả | Params |
|---|---|---|---|
| POST | /auth/login | Đăng nhập | {login, password} |
| POST | /auth/register | Đăng ký | {display_name, email, phone, username, user_pass, tenant_id, role_code, location_ids} |
Tags
| Method | Endpoint | Mô tả | Params |
|---|---|---|---|
| GET | /tags | Danh sách thẻ | tag_no hoặc location_ids[], user_id |
| POST | /tags | Tạo thẻ mới | {tag_type, s_category, description, location_id, reporter_id, ...} |
| POST | /tags/{tag_no}/assign | Nhận xử lý | {user_id, assignee} |
| POST | /tags/{tag_no}/submit | Gửi xem xét | {user_id, action_desc, photo_after_url} |
| POST | /tags/{tag_no}/review | Đánh giá OK/NG | {user_id, result, note} |
| POST | /tags/{tag_no}/update-action | Cập nhật khắc phục | {user_id, action_desc, photo_after_url} |
| POST | /tags/{tag_no}/assign-withdraw | Gán rút thẻ (R08) | {user_id, owner_id, owner_name} |
| POST | /tags/{tag_no}/request-review | Gửi xem xét rút | {user_id} |
| POST | /tags/{tag_no}/approve-review | Duyệt rút (R08) | {user_id} |
| POST | /tags/{tag_no}/evaluate | Đánh giá cuối (R07) | {user_id, result, note} |
| GET | /tags/{tag_no}/logs | Lịch sử thẻ | — |
Dashboard
| Method | Endpoint | Mô tả | |
|---|---|---|---|
| GET | /dashboard | Thống kê dashboard | tenant_id |
Locations
| Method | Endpoint | Mô tả | Params |
|---|---|---|---|
| GET | /locations | Danh sách locations | user_id hoặc tenant_id, leaves_only |
Assets
| Method | Endpoint | Mô tả | |
|---|---|---|---|
| GET | /assets | Danh sách tài sản | location_id hoặc asset_code |
Upload
| Method | Endpoint | Mô tả |
|---|---|---|
| POST | /upload | Upload ảnh |
| POST | /upload-tag-photo | Upload ảnh tag |
Tenants
| Method | Endpoint | Mô tả |
|---|---|---|
| GET | /tenants | Danh sách khách hàng |
cicc-assessment/v1 (Plugin: cicc-assessment)
| Method | Endpoint | Mô tả |
|---|---|---|
| GET | /templates | Danh sách bộ tiêu chí |
| GET | /templates/{id} | Chi tiết template + items |
| GET | /locations | Danh sách leaf locations |
| GET | /schedules/by-location | Lịch theo location |
| GET | /schedules/{id} | Chi tiết lịch |
| POST | /sessions | Tạo phiên đánh giá |
| GET | /sessions/{id} | Load phiên + items |
| POST | /sessions/{id}/submit | Submit scores |
| GET | /dashboard | KPI + radar |
| GET | /my-assignments | Assignment của user |
| POST | /sync | Offline sync |