lean.vn — LeanERP và hệ sinh thái AI
📖 Wiki-6S-HuongDan CiCC LeanERP SOP

Hệ thống: REST API Endpoints

Danh sách REST API endpoints cho hệ thống 6S


cicc-6s/v1 (Plugin: cicc-6s-api)

Authentication

MethodEndpointMô 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

MethodEndpointMô tảParams
GET/tagsDanh sách thẻtag_no hoặc location_ids[], user_id
POST/tagsTạo thẻ mới{tag_type, s_category, description, location_id, reporter_id, ...}
POST/tags/{tag_no}/assignNhận xử lý{user_id, assignee}
POST/tags/{tag_no}/submitGử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-actionCập nhật khắc phục{user_id, action_desc, photo_after_url}
POST/tags/{tag_no}/assign-withdrawGán rút thẻ (R08){user_id, owner_id, owner_name}
POST/tags/{tag_no}/request-reviewGửi xem xét rút{user_id}
POST/tags/{tag_no}/approve-reviewDuyệt rút (R08){user_id}
POST/tags/{tag_no}/evaluateĐánh giá cuối (R07){user_id, result, note}
GET/tags/{tag_no}/logsLịch sử thẻ—

Dashboard

MethodEndpointMô tả
GET/dashboardThống kê dashboardtenant_id

Locations

MethodEndpointMô tảParams
GET/locationsDanh sách locationsuser_id hoặc tenant_id, leaves_only

Assets

MethodEndpointMô tả
GET/assetsDanh sách tài sảnlocation_id hoặc asset_code

Upload

MethodEndpointMô tả
POST/uploadUpload ảnh
POST/upload-tag-photoUpload ảnh tag

Tenants

MethodEndpointMô tả
GET/tenantsDanh sách khách hàng

cicc-assessment/v1 (Plugin: cicc-assessment)

MethodEndpointMô tả
GET/templatesDanh sách bộ tiêu chí
GET/templates/{id}Chi tiết template + items
GET/locationsDanh sách leaf locations
GET/schedules/by-locationLịch theo location
GET/schedules/{id}Chi tiết lịch
POST/sessionsTạo phiên đánh giá
GET/sessions/{id}Load phiên + items
POST/sessions/{id}/submitSubmit scores
GET/dashboardKPI + radar
GET/my-assignmentsAssignment của user
POST/syncOffline sync