Справка по API
Аутентификация
Заголовок Authorization: Bearer JWT. JWT — из POST /auth/login или /auth/setup.
Auth
| Метод | Путь |
|---|---|
| GET | /auth/setup/status |
| POST | /auth/setup, /auth/login, /auth/register |
| GET | /auth/me |
| POST | /auth/logout |
| PUT | /auth/profile, /auth/password |
Schemas
GET/POST /schemas, GET/PUT/DELETE /schemas/:name
Content
GET/POST /content, GET/PUT/DELETE /content/:id. GET /content/:id/versions, POST .../versions/:version/restore. Query: schemaName, status, locale, page, limit, orderBy, order, search.
Media
GET/POST /media/upload, GET/PUT/DELETE /media/:id, GET /media/folders. Query: folder, mimeType, page, limit, search.
Остальное
Navigation: GET/PUT /navigation. Settings: GET/PUT /settings/seo. Trash: GET /trash, restore/delete документов и медиа, DELETE /trash/empty. GET /health, WebSocket /ws.