Code Editor API π‘ BETA
The editor family holds the routes mounted for source-file editing.
Endpoints
Exact lines from the Generated api-editor reference; the generated page is the full table.
| Method | Path |
|---|---|
| GET | /api/editor/file/:param |
| POST | /api/editor/file/:param |
| GET | /api/editor/files |
| POST | /api/editor/files |
| POST | /api/editor/format |
| POST | /api/editor/magic |
| POST | /api/editor/redo |
| GET | /api/editor/save |
Example
Minimal HTTP exchange for the first verified route (schemas are not modeled in the generated reference).
GET /api/editor/file/:param HTTP/1.1
Host: localhost:8080
Authorization: Bearer <token>
HTTP/1.1 200 OK
What it does
| Capability | Verified endpoint | Registered in |
|---|---|---|
| Editor file | GET /api/editor/file/:param |
botserver/crates/boteditor/src/routes.rs |
| Editor file | POST /api/editor/file/:param |
botserver/crates/boteditor/src/routes.rs |
| Editor files | GET /api/editor/files |
botserver/crates/boteditor/src/routes.rs |
| Editor files | POST /api/editor/files |
botserver/crates/boteditor/src/routes.rs |
| Editor format | POST /api/editor/format |
botserver/crates/boteditor/src/routes.rs |
| Editor magic | POST /api/editor/magic |
botserver/crates/boteditor/src/routes.rs |
| Editor redo | POST /api/editor/redo |
botserver/crates/boteditor/src/routes.rs |
| Save editor | GET /api/editor/save |
botserver/crates/boteditor/src/routes.rs |
Limits
- The Generated api-editor reference is authoritative: no endpoint outside its table is inferred here.
- Routes require an authenticated session unless listed in the anonymous allowlist in
botsecurity-auth/src/auth_api/public_routes.rs. - The generated table does not model request or response fields; consult the mounted handler for them.
Related
- Generated api-editor reference - Full verified route table.
- Files API
- Storage API