moodle-external-api-development
为 Moodle LMS 创建自定义外部 Web 服务 API。用于课程管理、用户跟踪、测验操作或自定义插件功能的 Web 服务实现。涵盖参数校验、数据库操作、错误处理、服务注册和 Moodle 编码标准。
译文已校对查看英文原文
Create custom external web service APIs for Moodle LMS. Use when implementing web services for course management, user tracking, quiz operations, or custom plugin functionality. Covers parameter validation, database operations, error handling, service registration, and Moodle coding standards.
适用对象:软件开发与测试。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Moodle External API Development
- When to Use This Skill
- Core Architecture Pattern
- Step-by-Step Implementation
- Step 1: Create the External API Class File
- Step 2: Define Input Parameters
- Step 3: Implement Business Logic
- Step 4: Define Return Structure
This skill guides you through creating custom external web service APIs for Moodle LMS, following Moodle's external API framework and coding standards. Creating custom web services for Moodle plugins Implementing REST/AJAX endpoints for course management Building APIs for quiz operations, user tracking, or reporting Exposing Moodle functionality to external applications Developing mobile app backends using Moodle Moodle external APIs follow a strict three-method pattern: 1. executeparameters() - Defines input parameter structure 2. execute() - Contains business logic 3. executereturns() - Defines return structure Location: /local/yourplugin/classes/external/yourapiname.php Key Points: Class must extend externalapi Namespace follows: localpluginname\external or modmodname\external Include the security check: defined('MOODLEINTERNAL') || die(); Require externallib.php for base classes Common Parameter Types: PARAMINT - Integers PARAMTEXT - Plain text (HTML stripped) PARAMRAW - Raw text (no cleaning) PARAMBOOL - Boolean values PARAMFLOAT - Floating point numbers PARAMALPHANUMEXT - Alphanumeric with extended chars Structures: externalvalue - Single value externalsinglestructure - Objec
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- davila7/claude-code-templates
- 源文件
- cli-tool/components/skills/development/moodle-external-api-development/SKILL.md
- 固定版本
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:44.530Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。