- Add CompanySetting routes (list, get, set) backed by company-scoped store - Add Number routes (list, update) for managing number sequences - Register new store namespaces for numbers and companysetting - Add CompanySetting and NumberSequence schemas to OpenAPI - Regenerate API docs and index for the new routes
39 lines
714 B
Markdown
39 lines
714 B
Markdown
# `GET /number`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
List number sequences
|
|
|
|
Lists the number sequences of the authenticated user's selected company.
|
|
|
|
## Response `200`
|
|
|
|
Number sequence list
|
|
|
|
```json
|
|
{
|
|
"numbers": [
|
|
{
|
|
"id": 1,
|
|
"type": "…",
|
|
"prefix": "…",
|
|
"padding": 1,
|
|
"next": 1
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
## Errors
|
|
|
|
| Status | Description |
|
|
|--------|-------------|
|
|
| 400 | No company selected — `{"error":"…"}` |
|
|
| 401 | Unauthorized — `{"error":"…"}` |
|
|
| 403 | Not authorized — `{"error":"…"}` |
|
|
| 404 | Company not found — `{"error":"…"}` |
|
|
|
|
---
|
|
|
|
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|