• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskcomments.php
  • Класс: CTaskComments
  • Вызов: CTaskComments::getManifest
static function getManifest()
{
	return(array(
		'Manifest version' => '1',
		'Warning' => 'don't rely on format of this manifest, it can be changed without any notification',
		'REST: shortname alias to class' => 'comment',
		'REST: available methods' => array(
			'getmanifest' => array(
				'staticMethod' => true,
				'params'       => array()
			),
			'add' => array(
				'staticMethod'         => true,
				'mandatoryParamsCount' => 2,
				'params' => array(
					array(
						'description' => 'taskId',
						'type'        => 'integer'
					),
					array(
						'description' => 'commentText',
						'type'        => 'string'
					)
				)
			)
		)
	));
}