- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/rest/handlers.php
- Класс: BitrixMainRestHandlers
- Вызов: Handlers::onRestServiceBuildDescription
static function onRestServiceBuildDescription()
{
return array(
static::SCOPE_USER => array(
'user.history.list' => array(User::class, 'getHistoryList'),
'user.history.fields.list' => array(User::class, 'getHistoryFieldsList'),
),
static::SCOPE_USER_CONSENT => array(
'userconsent.consent.add' => array(UserConsentRest::class, 'addConsent'),
'userconsent.agreement.list' => array(UserConsentRest::class, 'getAgreementList'),
'userconsent.agreement.text' => array(UserConsentRest::class, 'getAgreementText'),
),
static::SCOPE_RATING => array(
'like.list' => array(Rating::class, 'getLikeList'),
'like.reactions' => array(Rating::class, 'getLikeReactions'),
),
static::SCOPE_SMILE => array(
'smile.get' => array(Smile::class, 'getList'),
),
static::SCOPE_USER_FIELD_CONFIG => array(
CRestUtil::EVENTS => UserField::getHandlers(),
)
);
}