This commit is contained in:
seb
2026-10-11 18:55:06 +02:00
parent fe7be79b90
commit 7fd8d5d704
15 changed files with 150 additions and 129 deletions

View File

@@ -4,7 +4,7 @@ Protected. Requires a valid session cookie (`credentials: 'include'`).
List attribute names
Lists all attribute names defined for the selected company, including nested values.
Lists all attribute names defined for the selected company, including nested values. Each attribute name includes `articleCount` (the number of parent articles configured with this attribute) and each value includes `articleCount` (the number of articles having this attribute value).
## Response `200`
@@ -18,12 +18,14 @@ List of attribute names
"name": "…",
"sort": 1,
"exclusive": true,
"articleCount": 1,
"values": [
{
"id": 1,
"attributeId": 1,
"value": "…",
"sort": 1
"sort": 1,
"articleCount": 1
}
]
}

View File

@@ -37,12 +37,14 @@ Created attribute name
"name": "…",
"sort": 1,
"exclusive": true,
"articleCount": 1,
"values": [
{
"id": 1,
"attributeId": 1,
"value": "…",
"sort": 1
"sort": 1,
"articleCount": 1
}
]
}

View File

@@ -4,7 +4,7 @@ Protected. Requires a valid session cookie (`credentials: 'include'`).
List values for an attribute
Lists all values for a specific attribute.
Lists all values for a specific attribute. Each value includes `articleCount` (the number of articles having this attribute value).
## Path parameters
@@ -23,7 +23,8 @@ List of attribute values
"id": 1,
"attributeId": 1,
"value": "…",
"sort": 1
"sort": 1,
"articleCount": 1
}
]
}

View File

@@ -36,7 +36,8 @@ Created attribute value
"id": 1,
"attributeId": 1,
"value": "…",
"sort": 1
"sort": 1,
"articleCount": 1
}
}
```

View File

@@ -43,12 +43,14 @@ Updated attribute name
"name": "…",
"sort": 1,
"exclusive": true,
"articleCount": 1,
"values": [
{
"id": 1,
"attributeId": 1,
"value": "…",
"sort": 1
"sort": 1,
"articleCount": 1
}
]
}

View File

@@ -36,7 +36,8 @@ Updated attribute value
"id": 1,
"attributeId": 1,
"value": "…",
"sort": 1
"sort": 1,
"articleCount": 1
}
}
```

View File

@@ -4,7 +4,7 @@ Protected. Requires a valid session cookie (`credentials: 'include'`).
List property names
Lists all property names defined for the selected company, ordered by sort.
Lists all property names defined for the selected company, ordered by sort. Each property name includes `articleCount` (the number of articles in this company that have an articleproperty row for that property).
## Response `200`
@@ -17,7 +17,8 @@ List of property names
"id": 1,
"name": "…",
"sort": 1,
"exclusive": true
"exclusive": true,
"articleCount": 1
}
]
}

View File

@@ -36,7 +36,8 @@ Created property name
"id": 1,
"name": "…",
"sort": 1,
"exclusive": true
"exclusive": true,
"articleCount": 1
}
}
```

View File

@@ -42,7 +42,8 @@ Updated property name
"id": 1,
"name": "…",
"sort": 1,
"exclusive": true
"exclusive": true,
"articleCount": 1
}
}
```