43 lines
757 B
Markdown
43 lines
757 B
Markdown
# `GET /article/{sku}/children`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
List child articles of a parent article
|
|
|
|
Returns variants/children linked to this parent article.
|
|
|
|
## Path parameters
|
|
|
|
| Param | Required | Type | Description |
|
|
|-------|----------|------|-------------|
|
|
| `sku` | yes | string | Parent article SKU |
|
|
|
|
## Response `200`
|
|
|
|
List of children
|
|
|
|
```json
|
|
{
|
|
"children": [
|
|
{
|
|
"id": 1,
|
|
"sku": "…",
|
|
"name": "…",
|
|
"parentsort": 1,
|
|
"attributeValueId": 1,
|
|
"attributeValue": "…"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
## Errors
|
|
|
|
| Status | Description |
|
|
|--------|-------------|
|
|
| 404 | Article not found |
|
|
|
|
---
|
|
|
|
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|