• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/bizproc/automation/rest.php
  • Класс: BitrixTasksIntegrationBizprocAutomationRest
  • Вызов: Rest::getManifest
static function getManifest()
{
	return(array(
		'REST: shortname alias to class' => 'automation.trigger',
		'REST: available methods' => array(
			'webhook' => array(
				'mandatoryParamsCount' => 1,
				'params' => array(
					array(
						'description' => 'type',
						'type'        => 'string'
					),
					array(
						'description' => 'id',
						'type'        => 'string'
					),
					array(
						'description' => 'code',
						'type'        => 'string'
					)
				)
			),
			'add' => array(
				'mandatoryParamsCount' => 1,
				'params' => array(
					array(
						'description' => 'FIELDS',
						'type'        => 'array'
					),
				)
			),
			'delete' => array(
				'mandatoryParamsCount' => 1,
				'params' => array(
					array(
						'description' => 'CODE',
						'type'        => 'string'
					)
				)
			),
			'execute' => array(
				'mandatoryParamsCount' => 2,
				'params' => array(
					'params' => array(
						array(
							'description' => 'TASK_ID',
							'type'        => 'string'
						),
						array(
							'description' => 'CODE',
							'type'        => 'string'
						)
					)
				)
			),
			'list' => array(
				'mandatoryParamsCount' => 0,
				'params' => [],
			),
		)
	));
}