39 lines
862 B
Markdown
39 lines
862 B
Markdown
# `GET /attributename`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
List attribute names
|
|
|
|
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`
|
|
|
|
List of attribute names
|
|
|
|
```json
|
|
{
|
|
"attributenames": [
|
|
{
|
|
"id": 1,
|
|
"name": "…",
|
|
"sort": 1,
|
|
"exclusive": true,
|
|
"articleCount": 1,
|
|
"values": [
|
|
{
|
|
"id": 1,
|
|
"attributeId": 1,
|
|
"value": "…",
|
|
"sort": 1,
|
|
"articleCount": 1
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|