Test: REST API endpoints #9

Open
opened 2026-06-02 20:29:24 +00:00 by jmiller · 1 comment
Owner

Verify all WebServices API endpoints work correctly.

Scope

  • POST /backup (start backup)
  • GET /backups (list records)
  • DELETE /backup/:id (delete record)
  • GET /backup/:id/download (download archive)
  • GET /profiles (list profiles)
  • Authentication (Bearer token)
  • Error responses

Acceptance Criteria

  • All endpoints return correct data
  • Authentication required for all endpoints
  • Error responses use proper HTTP status codes
  • Compatible with mcp_mokobackup MCP server
Verify all WebServices API endpoints work correctly. ## Scope - POST /backup (start backup) - GET /backups (list records) - DELETE /backup/:id (delete record) - GET /backup/:id/download (download archive) - GET /profiles (list profiles) - Authentication (Bearer token) - Error responses ## Acceptance Criteria - [ ] All endpoints return correct data - [ ] Authentication required for all endpoints - [ ] Error responses use proper HTTP status codes - [ ] Compatible with mcp_mokobackup MCP server
jmiller added the type: testingpriority: highcomponent: apistatus: ready labels 2026-06-02 20:29:24 +00:00
Author
Owner

Testing Plan

Pre-requisites

  • Joomla API token with Super User access
  • WebServices plugin enabled
  • curl or API testing tool

TC-9.1: Start backup

curl -X POST https://site/api/index.php/v1/mokobackup/backup \\
  -H "Authorization: Bearer TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{"profile":1,"description":"API test"}'

Verify: HTTP 200, success=true, record_id returned

TC-9.2: List backups

curl https://site/api/index.php/v1/mokobackup/backups \\
  -H "Authorization: Bearer TOKEN"

Verify: JSON:API format, backup records with attributes

TC-9.3: Delete backup

curl -X DELETE https://site/api/index.php/v1/mokobackup/backup/1 \\
  -H "Authorization: Bearer TOKEN"

Verify: Record deleted, archive file removed

TC-9.4: Download backup

curl https://site/api/index.php/v1/mokobackup/backup/1/download \\
  -H "Authorization: Bearer TOKEN"

Verify: Base64-encoded archive content returned

TC-9.5: List profiles

curl https://site/api/index.php/v1/mokobackup/profiles \\
  -H "Authorization: Bearer TOKEN"

Verify: All published profiles returned

TC-9.6: No auth

  1. Call any endpoint without Authorization header
  2. Verify HTTP 401/403 response

TC-9.7: MCP compatibility

  1. Update mcp_mokobackup to use /mokobackup/ base URL
  2. Run akeeba_list, akeeba_backup, akeeba_profiles
  3. Verify all tools work with MokoJoomBackup backend
## Testing Plan ### Pre-requisites - Joomla API token with Super User access - WebServices plugin enabled - curl or API testing tool **TC-9.1: Start backup** ```bash curl -X POST https://site/api/index.php/v1/mokobackup/backup \\ -H "Authorization: Bearer TOKEN" \\ -H "Content-Type: application/json" \\ -d '{"profile":1,"description":"API test"}' ``` Verify: HTTP 200, success=true, record_id returned **TC-9.2: List backups** ```bash curl https://site/api/index.php/v1/mokobackup/backups \\ -H "Authorization: Bearer TOKEN" ``` Verify: JSON:API format, backup records with attributes **TC-9.3: Delete backup** ```bash curl -X DELETE https://site/api/index.php/v1/mokobackup/backup/1 \\ -H "Authorization: Bearer TOKEN" ``` Verify: Record deleted, archive file removed **TC-9.4: Download backup** ```bash curl https://site/api/index.php/v1/mokobackup/backup/1/download \\ -H "Authorization: Bearer TOKEN" ``` Verify: Base64-encoded archive content returned **TC-9.5: List profiles** ```bash curl https://site/api/index.php/v1/mokobackup/profiles \\ -H "Authorization: Bearer TOKEN" ``` Verify: All published profiles returned **TC-9.6: No auth** 1. Call any endpoint without Authorization header 2. Verify HTTP 401/403 response **TC-9.7: MCP compatibility** 1. Update mcp_mokobackup to use /mokobackup/ base URL 2. Run akeeba_list, akeeba_backup, akeeba_profiles 3. Verify all tools work with MokoJoomBackup backend
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomBackup#9