Test: REST API dispatch endpoint #71

Open
opened 2026-05-29 04:12:40 +00:00 by jmiller · 1 comment
Owner

Test: POST /api/v1/mokojoomcross/dispatch

What changed

New REST API endpoint for programmatic cross-posting.

Steps to test

curl -X POST "https://yoursite.com/api/index.php/v1/mokojoomcross/dispatch" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"article_id": 123}'
  1. POST with valid article_id → verify posts are queued for all services
  2. POST with article_id + service_ids array → verify only those services queued
  3. POST with invalid article_id → verify 404 error response
  4. POST without article_id → verify 400 error response
  5. Check Post Queue for created entries

Labels

type: testing, priority: medium

## Test: POST /api/v1/mokojoomcross/dispatch ### What changed New REST API endpoint for programmatic cross-posting. ### Steps to test ```bash curl -X POST "https://yoursite.com/api/index.php/v1/mokojoomcross/dispatch" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"article_id": 123}' ``` 1. POST with valid article_id → verify posts are queued for all services 2. POST with article_id + service_ids array → verify only those services queued 3. POST with invalid article_id → verify 404 error response 4. POST without article_id → verify 400 error response 5. Check Post Queue for created entries ### Labels `type: testing`, `priority: medium`
Author
Owner

Branch created: feature/71-test-rest-api-dispatch-endpoint

git fetch origin
git checkout feature/71-test-rest-api-dispatch-endpoint
Branch created: [`feature/71-test-rest-api-dispatch-endpoint`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomCross/src/branch/feature/71-test-rest-api-dispatch-endpoint) ```bash git fetch origin git checkout feature/71-test-rest-api-dispatch-endpoint ```
Sign in to join this conversation.
Type Task
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomCross#71