跳至內容
ShopentlyLearn

屬性與值

維護屬性字典及分配給產品的值。

操作

GET取得清單 — 屬性與值/api/v1/features

POST建立 — 屬性與值/api/v1/features

DELETE刪除 — 屬性與值/api/v1/features/{identity}

GET取得 — 屬性與值/api/v1/features/{identity}

PATCH更新 — 屬性與值/api/v1/features/{identity}

GET取得清單 · 值 — 屬性與值/api/v1/features/{identity}/values

POST建立 · 值 — 屬性與值/api/v1/features/{identity}/values

DELETE刪除 · 值 — 屬性與值/api/v1/features/{identity}/values/{value_id}

GET取得 · 值 — 屬性與值/api/v1/features/{identity}/values/{value_id}

PATCH更新 · 值 — 屬性與值/api/v1/features/{identity}/values/{value_id}

工作原理

屬性及其值分別具有集合、詳情、建立、更新和刪除操作。為產品分配屬性時,請使用回傳的值識別碼。

系統會驗證選擇規則及現有產品關係。變更前先讀取目前版本,刪除仍在使用的值前先處理依賴關係。