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.
579 B
579 B
GET /company
Protected. Requires a valid session cookie (credentials: 'include').
List companies
Lists companies for the authenticated user.
Response 200
Company list
{
"companies": [
{
"id": 1,
"iso639": "…",
"name": "…",
"taxrate": 1,
"reducedtaxrate": 1
}
]
}
Errors
| Status | Description |
|---|---|
| 401 | Unauthorized — {"error":"…"} |
| 500 | Server error — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.