-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Convert all SEO-related REST routes to delegate to extrachill-seo plugin abilities instead of containing business logic directly.
Current State
- SEO routes contain embedded business logic for audits, analysis, and configuration
- Direct calls to SEO functions throughout route handlers
- No delegation to Abilities API
Routes to Convert
POST /wp-json/extrachill/v1/seo/audit→ delegate toextrachill/run-seo-auditabilityGET /wp-json/extrachill/v1/seo/status→ delegate toextrachill/get-seo-resultsabilityGET /wp-json/extrachill/v1/seo/config→ delegate toextrachill/get-seo-configabilityPUT /wp-json/extrachill/v1/seo/config→ delegate toextrachill/update-seo-configabilityPOST /wp-json/extrachill/v1/seo/continue→ delegate toextrachill/run-seo-audit(batch mode)POST /wp-json/extrachill/v1/seo/details→ delegate toextrachill/analyze-urlability
Implementation Pattern
function extrachill_api_seo_audit_handler($request) {
$input = extrachill_api_rest_to_ability_input($request, [
'mode' => 'mode',
'blog_id' => 'blog_id',
'checks' => 'checks'
]);
$result = wp_execute_ability('extrachill/run-seo-audit', $input);
return extrachill_api_ability_to_rest_response($result);
}Success Criteria
- All SEO REST endpoints maintain exact same external interface
- Business logic removed from API plugin and delegated to extrachill-seo abilities
- Backward compatibility maintained for existing consumers
- Performance improved by removing business logic from API layer
Dependencies
- Requires completion of "Add Ability Delegation Wrapper Infrastructure" issue
- extrachill-seo plugin abilities already implemented and available
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request