feat: Content Snapshot REST API endpoints #54
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 fileGET /snapshot/:id/download— Download snapshot JSON fileWhy
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