SCRAPE-16: Implement POST /admin/scraper/run endpoint #21
Reference in New Issue
Block a user
No description provided.
Delete Branch "scraper/api-run"
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
Adds the
POST /api/admin/scraper/runendpoint for manually triggering scraper runs from the admin dashboard.Endpoint Details
POST /api/admin/scraper/runrequireAuth+requireAdminmiddlewareKey Features
isScraperRunning){ jobId, status: 'started', message, dryRun }without waiting for scrape completionADMIN_TRIGGER_SCRAPEwith metadata (jobId, dryRun, usingProvidedHtml).finally()ensuring cleanup on both success and failureResponse Codes
Test Coverage
20 tests covering: