Add delivery and supplier HTTP APIs with expanded response docs.
Wire store-backed CRUD for goods receipts and suppliers, and teach the API doc generator to expand $ref/allOf/array samples so route markdown shows full JSON shapes.
This commit is contained in:
@@ -30,7 +30,12 @@ Image stored and linked
|
||||
|
||||
```json
|
||||
{
|
||||
"category": { … }
|
||||
"category": {
|
||||
"id": 1,
|
||||
"thumbW": 1,
|
||||
"thumbH": 1,
|
||||
"thumbHash": "…"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -18,7 +18,9 @@ Articles list
|
||||
|
||||
```json
|
||||
{
|
||||
"articles": []
|
||||
"articles": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -25,7 +25,12 @@ Created
|
||||
|
||||
```json
|
||||
{
|
||||
"category": { … }
|
||||
"category": {
|
||||
"id": 1,
|
||||
"parentId": 1,
|
||||
"sort": 1,
|
||||
"name": "…"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -24,7 +24,12 @@ Image removed
|
||||
|
||||
```json
|
||||
{
|
||||
"category": { … }
|
||||
"category": {
|
||||
"id": 1,
|
||||
"thumbW": 1,
|
||||
"thumbH": 1,
|
||||
"thumbHash": "…"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -34,7 +34,9 @@ New sibling order
|
||||
|
||||
```json
|
||||
{
|
||||
"categoryIds": []
|
||||
"categoryIds": [
|
||||
1
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -13,8 +13,12 @@ Tree and articles for the selected company
|
||||
```json
|
||||
{
|
||||
"languageId": 1,
|
||||
"tree": [],
|
||||
"articles": []
|
||||
"tree": [
|
||||
{}
|
||||
],
|
||||
"articles": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -34,7 +34,13 @@ Updated category (renamed and/or moved)
|
||||
|
||||
```json
|
||||
{
|
||||
"category": { … }
|
||||
"category": {
|
||||
"id": 1,
|
||||
"name": "…",
|
||||
"slug": "…",
|
||||
"parentId": 1,
|
||||
"sort": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user