moodle-external-api-development - Develop Custom External APIs for Moodle
Guides the creation and registration of Moodle external web service APIs using the external API framework and coding standards.
Tags
Updated: 2026-10-04Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Define API input parameters
- Implement endpoint business logic
- Validate contexts and capabilities
- Define structured return data
- Register Moodle web services
- Handle and log errors
- Manage database transactions
Inputs
- Moodle plugin context
- API endpoint requirements
- Input and output structures
- Database schema
- Required capabilities
Outputs
- PHP external API class
- Moodle service registration
- Registered web service endpoint
- Structured API responses
- Error and debug logs
Requirements
- Moodle LMS installation
- PHP runtime
- Moodle external API framework
- Plugin file access
- Database access
- Capability configuration access
