This commit is contained in:
seb
2026-10-08 12:59:14 +02:00
parent e2e7f8d566
commit c2d3cdb088
11 changed files with 24 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ Params: path values first, then `query:` and `body:` (`body?` = optional body).
### Reusable types ### Reusable types
- `T1` = `{ article: T2 }` - `T1` = `{ article: T2 }`
- `T2` = `{ id: int, sku: str, name: str, slug: str, track_stock: bool, unitamount: num|null, weight: num|null, unit: T32, brand: T28|null, categoryIds: int[], photos: T26[], eans: str[], prices: T36[], suppliers: T12[] }` - `T2` = `{ id: int, sku: str, name: str, slug: str, desc: str|null, seo: str|null, track_stock: bool, unitamount: num|null, weight: num|null, unit: T32, brand: T28|null, categoryIds: int[], photos: T26[], eans: str[], prices: T36[], suppliers: T12[] }`
- `T3` = `{ delivery: T4 }` - `T3` = `{ delivery: T4 }`
- `T4` = `{ id: int, number: str, type: str, supplierId: int|null, date: str, lines: T20[], files: T9[], externalNumber?: str|null, createdAt?: str, ledger?: T40 }` - `T4` = `{ id: int, number: str, type: str, supplierId: int|null, date: str, lines: T20[], files: T9[], externalNumber?: str|null, createdAt?: str, ledger?: T40 }`
- `T5` = `{ labeltemplate: T6 }` - `T5` = `{ labeltemplate: T6 }`

View File

@@ -10,7 +10,7 @@ Params: path values first, then `query:` and `body:` (`body?` = optional body).
### Reusable types ### Reusable types
- `T1` = `{ article: T2 }` - `T1` = `{ article: T2 }`
- `T2` = `{ id: int, sku: str, name: str, slug: str, track_stock: bool, unitamount: num|null, weight: num|null, unit: T30, brand: T27|null, categoryIds: int[], photos: T25[], eans: str[], prices: T32[], suppliers: T11[] }` - `T2` = `{ id: int, sku: str, name: str, slug: str, desc: str|null, seo: str|null, track_stock: bool, unitamount: num|null, weight: num|null, unit: T30, brand: T27|null, categoryIds: int[], photos: T25[], eans: str[], prices: T32[], suppliers: T11[] }`
- `T3` = `{ delivery: T4 }` - `T3` = `{ delivery: T4 }`
- `T4` = `{ id: int, number: str, type: str, supplierId: int|null, date: str, lines: T19[], files: T9[], externalNumber?: str|null, createdAt?: str, ledger?: T36 }` - `T4` = `{ id: int, number: str, type: str, supplierId: int|null, date: str, lines: T19[], files: T9[], externalNumber?: str|null, createdAt?: str, ledger?: T36 }`
- `T5` = `{ labeltemplate: T6 }` - `T5` = `{ labeltemplate: T6 }`

View File

@@ -40,6 +40,8 @@ Updated article detail
"sku": "…", "sku": "…",
"name": "…", "name": "…",
"slug": "…", "slug": "…",
"desc": "…",
"seo": "…",
"track_stock": true, "track_stock": true,
"unitamount": 1, "unitamount": 1,
"weight": 1, "weight": 1,

View File

@@ -23,6 +23,8 @@ Article detail
"sku": "…", "sku": "…",
"name": "…", "name": "…",
"slug": "…", "slug": "…",
"desc": "…",
"seo": "…",
"track_stock": true, "track_stock": true,
"unitamount": 1, "unitamount": 1,
"weight": 1, "weight": 1,

View File

@@ -41,6 +41,8 @@ Updated article detail
"sku": "…", "sku": "…",
"name": "…", "name": "…",
"slug": "…", "slug": "…",
"desc": "…",
"seo": "…",
"track_stock": true, "track_stock": true,
"unitamount": 1, "unitamount": 1,
"weight": 1, "weight": 1,

View File

@@ -45,6 +45,8 @@ Updated article detail
"sku": "…", "sku": "…",
"name": "…", "name": "…",
"slug": "…", "slug": "…",
"desc": "…",
"seo": "…",
"track_stock": true, "track_stock": true,
"unitamount": 1, "unitamount": 1,
"weight": 1, "weight": 1,

View File

@@ -43,6 +43,8 @@ Updated article detail
"sku": "…", "sku": "…",
"name": "…", "name": "…",
"slug": "…", "slug": "…",
"desc": "…",
"seo": "…",
"track_stock": true, "track_stock": true,
"unitamount": 1, "unitamount": 1,
"weight": 1, "weight": 1,

View File

@@ -61,6 +61,8 @@ Updated article detail
"sku": "…", "sku": "…",
"name": "…", "name": "…",
"slug": "…", "slug": "…",
"desc": "…",
"seo": "…",
"track_stock": true, "track_stock": true,
"unitamount": 1, "unitamount": 1,
"weight": 1, "weight": 1,

View File

@@ -41,6 +41,8 @@ Updated article detail
"sku": "…", "sku": "…",
"name": "…", "name": "…",
"slug": "…", "slug": "…",
"desc": "…",
"seo": "…",
"track_stock": true, "track_stock": true,
"unitamount": 1, "unitamount": 1,
"weight": 1, "weight": 1,

View File

@@ -47,6 +47,8 @@ Updated article detail
"sku": "…", "sku": "…",
"name": "…", "name": "…",
"slug": "…", "slug": "…",
"desc": "…",
"seo": "…",
"track_stock": true, "track_stock": true,
"unitamount": 1, "unitamount": 1,
"weight": 1, "weight": 1,

View File

@@ -136,6 +136,12 @@
* type: string * type: string
* slug: * slug:
* type: string * type: string
* desc:
* type: string
* nullable: true
* seo:
* type: string
* nullable: true
* track_stock: * track_stock:
* type: boolean * type: boolean
* unitamount: * unitamount: