bitrix-rest
Installation
SKILL.md
REST API (rest)
The rest module exposes HTTP methods under the configured path (default /rest/, option rest.rest_server_path). Baseline: main 23.0+. Prefer Engine controllers + restIntegration for new module APIs; keep classic OnRestServiceBuildDescription for explicit method maps / events / placements.
\Bitrix\Main\Loader::includeModule('rest');
Two Registration Paths
| Approach | How | Typical use |
|---|---|---|
| Engine controller | Module .settings.php → controllers.restIntegration.enabled |
New CRUD/actions; same class as AJAX |
| Classic description | Event rest / OnRestServiceBuildDescription |
Custom method names, REST events, placements |
Discovery of controller methods: Bitrix\Rest\Engine\RestManager::onFindMethodDescription requires restIntegration.enabled for that module.