Operacje
GETPobierz listę cech/api/v1/features
POSTUtwórz cechę/api/v1/features
DELETEUsuń cechę/api/v1/features/{identity}
GETPobierz cechę/api/v1/features/{identity}
PATCHZmień cechę/api/v1/features/{identity}
GETPobierz listę wartości cechy/api/v1/features/{identity}/values
POSTUtwórz wartość cechy/api/v1/features/{identity}/values
DELETEUsuń wartość cechy/api/v1/features/{identity}/values/{value_id}
GETPobierz wartość cechy/api/v1/features/{identity}/values/{value_id}
PATCHZmień wartość cechy/api/v1/features/{identity}/values/{value_id}
Jak to działa
Cechy i ich wartości mają oddzielne operacje listy, szczegółów, tworzenia, edycji i usuwania. Przy przypisywaniu cech do produktów używaj zwróconych identyfikatorów wartości.
API sprawdza reguły wyboru i istniejące powiązania z produktami. Przed zmianą odczytaj bieżące wersje, a przed usunięciem używanej wartości rozwiąż zależności.