[MokoJoomMembership] [FEATURE] Joomla Web Service API (com_api plugin) #63
Reference in New Issue
Block a user
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?
Feature Description
Add a Joomla Web Services API plugin to expose this extension's data via REST endpoints, following Joomla 4/5's built-in API application.
Problem or Use Case
Joomla 4+ includes a headless API application at /api/. Extensions that register web service plugins can expose CRUD endpoints for their data, enabling:
Proposed Solution
Create a
plg_webservices_<extension>plugin that:onBeforeApiRouteeventStandard Endpoints
GET /api/index.php/v1/<resource>- List itemsGET /api/index.php/v1/<resource>/:id- Get single itemPOST /api/index.php/v1/<resource>- Create itemPATCH /api/index.php/v1/<resource>/:id- Update itemDELETE /api/index.php/v1/<resource>/:id- Delete itemImplementation Details
plg_webservices_<name>Joomla\Plugin\WebServices\<Name>Joomla\CMS\Router\ApiRouterJsonApiViewReferences
plg_webservices_content,plg_webservices_menusDuplicate of #16 — membership API endpoints included in plg_webservices_mokojoomcommunity