Toolverse
All skills

moodle-external-api-development

by davila7

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

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davila7
Category
Backend

About this skill

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.

How to use

  1. Umieść plik klasy API w katalogu wtyczki, np. /local/yourplugin/classes/external/your_api_name.php. Klasa musi rozszerzać external_api i być umieszczona w odpowiedniej przestrzeni nazw (local_pluginname\external lub mod_modname\external).

  2. Zaimplementuj trzy obowiązkowe metody: execute_parameters() definiującą strukturę parametrów wejściowych, execute() zawierającą logikę biznesową, oraz execute_returns() definiującą strukturę zwracanego wyniku.

  3. W metodzie execute_parameters() użyj klas external_function_parameters, external_single_structure i external_value do zdefiniowania typów i struktury danych, które API będzie przyjmować.

  4. Zaimplementuj logikę biznesową w metodzie execute(), uwzględniając walidację parametrów, operacje na bazie danych oraz obsługę błędów zgodnie ze standardami Moodle'a.

  5. W metodzie execute_returns() określ strukturę odpowiedzi API, używając tych samych klas parametrów do opisania zwracanych danych.

  6. Zarejestruj API w pliku db/services.php wtyczki, aby Moodle mogło je rozpoznać i udostępnić jako webservice dla aplikacji zewnętrznych i mobilnych.

Related skills

clickup

by civitai

Interact with ClickUp tasks and documents - get task details, view comments, create and manage tasks, create and edit docs. Use when working with ClickUp task/doc URLs or IDs.

Backend
2483

scientific-writing

by K-Dense-AI

Write scientific manuscripts. IMRAD structure, citations (APA/AMA/Vancouver), figures/tables, reporting guidelines (CONSORT/STROBE/PRISMA), abstracts, for research papers and journal submissions.

Backend
47191

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Backend
79340

literature-review

by K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature

Backend
238507

pdf-to-markdown

by aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions \

Backend
355664

patent-search

by RobThePCGuy

Advanced prior art search using the PatentsView API. Use this skill when users need to search for patents, perform prior art searches, analyze patent landscapes, or find patents by inventor, title, date range, or technical fields. Helps with patent research, freedom to operate

Backend
36218