u
This commit is contained in:
@@ -266,7 +266,6 @@ Generated from `@openapi` annotations in [`src/api/routes/`](../../src/api/route
|
||||
| [`routes/v1/product.md`](routes/v1/product.md) | `GET /v1/product` |
|
||||
| [`routes/vfs/list.md`](routes/vfs/list.md) | `GET /vfs` |
|
||||
| [`routes/vfs/applets-restore.md`](routes/vfs/applets-restore.md) | `POST /vfs/applets/restore` |
|
||||
| [`routes/vfs/drafts/response.md`](routes/vfs/drafts/response.md) | `POST /vfs/drafts/response` |
|
||||
| [`routes/vfs/mkdir.md`](routes/vfs/mkdir.md) | `POST /vfs/mkdir` |
|
||||
| [`routes/vfs/rename.md`](routes/vfs/rename.md) | `POST /vfs/rename` |
|
||||
| [`routes/vfs/skills-restore.md`](routes/vfs/skills-restore.md) | `POST /vfs/skills/restore` |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Dash API Routes Overview (All)
|
||||
|
||||
Overview of all 250 API endpoints across all modules.
|
||||
Overview of all 249 API endpoints across all modules.
|
||||
|
||||
### Notation
|
||||
|
||||
@@ -915,9 +915,6 @@ _none_
|
||||
#### Restore system default applets — `POST /vfs/applets/restore`
|
||||
_none_
|
||||
- Returns: `200 { success: bool, restored: str[], count: int }`
|
||||
#### Respond to a frontend draft request — `POST /vfs/drafts/response`
|
||||
- Params: `body: { requestId: str, content?: any, error?: str, files?: any[] }`
|
||||
- Returns: `200 { success: bool }`
|
||||
#### Create directory in virtual filesystem — `POST /vfs/mkdir`
|
||||
- Params: `body: { path: str }`
|
||||
- Returns: `200 { success: bool, dir: str }`
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
# `POST /vfs/drafts/response`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
Respond to a frontend draft request
|
||||
|
||||
Used by the frontend to answer a server-initiated `draft:request` SSE event
|
||||
when reading or listing virtual drafts (`drafts/quote`, `drafts/order`, `drafts/delivery`).
|
||||
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `requestId` | yes | string | Unique request ID from the draft:request SSE event |
|
||||
| `content` | no | | File content when action was read |
|
||||
| `error` | no | string | Error message if draft retrieval failed on frontend |
|
||||
| `files` | no | any[] | File listing when action was list |
|
||||
|
||||
```json
|
||||
{
|
||||
"requestId": "…",
|
||||
"content": "…",
|
||||
"error": "…",
|
||||
"files": []
|
||||
}
|
||||
```
|
||||
|
||||
## Response `200`
|
||||
|
||||
Response received and resolved
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true
|
||||
}
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 400 | Missing requestId or no company selected — `{"error":"…"}` |
|
||||
| 404 | Request ID not found or already timed out — `{"error":"…"}` |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user