feat: Add API controllers for webservices plugin CRUD routes #37
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?
Summary
The webservices plugin (
plg_webservices_mokosuitefield) registers CRUD routes for 8 entities but no API controllers exist in the component to handle them. All API requests will return 404.Routes registered in
MokoSuiteField.php:v1/mokosuitefield/workordersv1/mokosuitefield/equipmentv1/mokosuitefield/techniciansv1/mokosuitefield/partsv1/mokosuitefield/truckinventoryv1/mokosuitefield/checklistsv1/mokosuitefield/pmagreementsv1/mokosuitefield/dispatchesRequirements
Create API controllers in
admin/src/Controller/Api/(or the component'sapi/directory):Joomla\CMS\MVC\Controller\ApiController, maps to work_orders tableTechnical Notes
$contentTypeproperty matching the route nameJoomla\CMS\MVC\Controller\ApiControllerbase classBranch created:
feature/37-feat-add-api-controllers-for-webservices