u
This commit is contained in:
@@ -4,7 +4,7 @@ Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
Delete category
|
||||
|
||||
Deletes a category the user is authorized for (not the company root).
|
||||
Deletes a category the user is authorized for (not the company root). When recursive=true, recursively deletes all child categories, unassigns POS terminals, and deletes articles that only exist in the deleted subtree (including their children).
|
||||
|
||||
## Path parameters
|
||||
|
||||
@@ -12,9 +12,15 @@ Deletes a category the user is authorized for (not the company root).
|
||||
|-------|----------|------|-------------|
|
||||
| `id` | yes | integer | Category id |
|
||||
|
||||
## Query parameters
|
||||
|
||||
| Param | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `recursive` | no | boolean | When true, recursively deletes the category subtree and articles that only exist within it. |
|
||||
|
||||
## Signals
|
||||
|
||||
On success, emits SSE signal: `category` (see [`GET /events`](../events.md)).
|
||||
On success, emits SSE signals: `category`, `articles` (see [`GET /events`](../events.md)).
|
||||
|
||||
## Response `204`
|
||||
|
||||
|
||||
41
docs/api/routes/public/telemetry/crash.md
Normal file
41
docs/api/routes/public/telemetry/crash.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# `POST /public/telemetry/crash`
|
||||
|
||||
Public. No cookie required.
|
||||
|
||||
Receipt crash dump
|
||||
|
||||
Public endpoint to receive crash dumps. Saves the content parameter to a file named with the epoch millisecond.
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `content` | yes | | Crash dump content to store |
|
||||
|
||||
```json
|
||||
{
|
||||
"content": "…"
|
||||
}
|
||||
```
|
||||
|
||||
## Response `200`
|
||||
|
||||
Crash dump saved
|
||||
|
||||
```json
|
||||
{
|
||||
"ok": true,
|
||||
"filename": "1728395535123"
|
||||
}
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 400 | Missing content parameter |
|
||||
| 500 | Storage failure |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user