feat: Content Snapshot REST API endpoints #54

Closed
opened 2026-06-21 16:49:29 +00:00 by jmiller · 0 comments
Owner

Summary

Expose content snapshot operations via the Joomla REST API (/api/index.php/v1/mokosuitebackup/snapshots), matching the existing backup API pattern.

Endpoints

  • GET /snapshots — List snapshot records (with pagination/filtering)
  • POST /snapshot — Create a new snapshot (content_types, description)
  • POST /snapshot/:id/restore — Restore from snapshot (mode: replace/merge, content_types)
  • DELETE /snapshot/:id — Delete snapshot record and data file
  • GET /snapshot/:id/download — Download snapshot JSON file

Why

Enables MCP backup server (mcp-mokobackup) and bridge to manage content snapshots remotely. Follows the same Bearer token auth pattern as existing backup API.

Files

  • api/src/Controller/SnapshotsController.php (new)
  • plg_webservices_mokosuitebackup — register new routes
## Summary Expose content snapshot operations via the Joomla REST API (`/api/index.php/v1/mokosuitebackup/snapshots`), matching the existing backup API pattern. ## Endpoints - `GET /snapshots` — List snapshot records (with pagination/filtering) - `POST /snapshot` — Create a new snapshot (content_types, description) - `POST /snapshot/:id/restore` — Restore from snapshot (mode: replace/merge, content_types) - `DELETE /snapshot/:id` — Delete snapshot record and data file - `GET /snapshot/:id/download` — Download snapshot JSON file ## Why Enables MCP backup server (`mcp-mokobackup`) and bridge to manage content snapshots remotely. Follows the same Bearer token auth pattern as existing backup API. ## Files - `api/src/Controller/SnapshotsController.php` (new) - `plg_webservices_mokosuitebackup` — register new routes
jmiller added the component: api label 2026-06-21 16:49:29 +00:00
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteBackup#54