liventin/base.module.rest.router

Service for subscribe rest methods in bitrix event

v1.0.1 2025-09-11 18:10 UTC

This package is auto-updated.

Last update: 2025-09-11 18:11:10 UTC


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
    }
}