liventin / base.module.rest.router
Service for subscribe rest methods in bitrix event
Package info
github.com/Liventin/base.module.rest.router
Type:bitrix-d7-module
pkg:composer/liventin/base.module.rest.router
v1.0.1
2025-09-11 18:10 UTC
Requires
- php: >=8.1
- liventin/base.module: ^1.0.0
- liventin/base.module.handlers: ^1.0.0
Requires (Dev)
- roave/security-advisories: dev-latest
README
| Bitrix Base Module |
install | update
"require": {
"liventin/base.module.rest.router": "@stable"
}
redirect (optional)
"extra": {
"service-redirect": {
"liventin/base.module.rest.router": "module.name",
}
}
PhpStorm Live Template
<?php namespace ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Rest; use ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Service\LazyService; use ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Service\Rest\BitrixRest; use CRestServer; class RestExample { #[BitrixRest(LazyService::MODULE_ID, LazyService::MODULE_ID.'.test')] public static function test(array ${DS}params, int ${DS}start, CRestServer ${DS}server): void { //logic } }