file meta

This commit is contained in:
seb
2026-09-18 05:20:03 +02:00
parent bbd285109d
commit 8c19388901
6 changed files with 334 additions and 12 deletions

View File

@@ -27,6 +27,13 @@ The manifest `number` is allocated automatically via
"net": 99.5,
"taxrate": 19
}
],
"files": [
{
"mimetype": "application/pdf",
"name": "delivery-note.pdf",
"content": "<base64 encoded content>"
}
]
}
```
@@ -56,6 +63,24 @@ Created delivery
"taxrate": 1,
"comment": "…"
}
],
"files": [
{
"id": 1,
"manifestId": 1,
"fileId": 1,
"sort": 1,
"hash": "…",
"mimetype": "…",
"name": "…",
"size": 1,
"created": "2026-08-10T00:00:00.000Z",
"modified": "2026-08-10T00:00:00.000Z",
"thumbavif": "…",
"thumbx": 1,
"thumby": 1,
"meta": {}
}
]
}
}
@@ -65,10 +90,10 @@ Created delivery
| Status | Description |
|--------|-------------|
| 400 | Invalid delivery, invalid lines, or no company selected — `{"error":"…"}` |
| 400 | Invalid delivery, invalid lines or files, or no company selected — `{"error":"…"}` |
| 401 | Unauthorized — `{"error":"…"}` |
| 403 | Not authorized — `{"error":"…"}` |
| 404 | Company, supplier, or article not found — `{"error":"…"}` |
| 404 | Company or supplier not found — `{"error":"…"}` |
---