RouteArticle API endpoints for approve/reject/restore #98
Labels
No labels
bug
devops
duplicate
enhancement
good first issue
next major release
next minor release
question
testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/fedi-feed-router#98
Loading…
Reference in a new issue
No description provided.
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
Add API endpoints for managing route_article approval status. The old
POST /articles/{id}/approveandPOST /articles/{id}/rejectendpoints were removed in #85 since approval moved from Article to RouteArticle.Endpoints needed
POST /api/v1/route-articles/{routeArticle}/approve— callsRouteArticle::approve(), dispatchesRouteArticleApprovedeventPOST /api/v1/route-articles/{routeArticle}/reject— callsRouteArticle::reject()POST /api/v1/route-articles/{routeArticle}/restore— sets status back topendingPOST /api/v1/route-articles/clear— bulk reject all pending route_articles (for "Clear" button in triage UI)GET /api/v1/route-articles— list route_articles with filtering byapproval_status, paginationTasks
RouteArticlesControllerwith approve, reject, restore, clear, index methodsRouteArticleResourcefor API responsesroutes/api.phpDependencies