Test CRUD, AI generation, single-test run, review, bulk actions, and export. Mounted at /api/v1 (INF-005).
Endpoints
| Method | Path | Description |
|---|---|---|
GET |
/api/v1/projects/:id/tests |
List tests for a project |
GET |
/api/v1/tests |
List all tests |
GET |
/api/v1/tests/:testId |
Get a single test |
PATCH |
/api/v1/tests/:testId |
Edit test (steps, name, code, etc.) |
POST |
/api/v1/projects/:id/tests |
Create a manual test (Draft) |
DELETE |
/api/v1/projects/:id/tests/:testId |
Delete a test |
POST |
/api/v1/projects/:id/tests/generate |
AI-generate test(s) from description |
POST |
/api/v1/tests/:testId/run |
Run a single test |
PATCH |
/api/v1/projects/:id/tests/:testId/approve |
Approve (Draft → Approved) |
PATCH |
/api/v1/projects/:id/tests/:testId/reject |
Reject |
PATCH |
/api/v1/projects/:id/tests/:testId/restore |
Restore to Draft |
POST |
/api/v1/projects/:id/tests/bulk |
Bulk approve/reject/restore/delete |
GET |
/api/v1/projects/:id/tests/counts |
Per-status test counts |
GET |
/api/v1/projects/:id/tests/export/zephyr |
Zephyr Scale CSV export |
GET |
/api/v1/projects/:id/tests/export/testrail |
TestRail CSV export |
GET |
/api/v1/projects/:id/tests/traceability |
Traceability matrix |
- Source: