protected function generateParamsTemplate($id, $st_params)
    {
        if (!isset($st_params['ApiParams']))
        {
             return;
        }

        $body = [];
        $paramSampleBtnTpl = $this->loadPartialTemplate('paramSampleBtnTpl');
        $paramContentTpl = $this->loadPartialTemplate('paramContentTpl');

        foreach ($st_params['ApiParams'] as $params) {
            $tr = array(
                '{{ name }}'        => $params['name'],
                '{{ type }}'        => $params['type'],
                '{{ nullable }}'    => @$params['nullable'] == '1' ? 'No' : 'Yes',
                '{{ description }}' => @$params['description'],
            );

            if (isset($params['sample'])) {
                $tr['{{ type }}'].= ' '.strtr($paramSampleBtnTpl, array('{{ sample }}' => $params['sample']));
            }

            $body[] = strtr($paramContentTpl, $tr);
        }

        return strtr($this->loadPartialTemplate('paramTableTpl'), array('{{ tbody }}' => implode(PHP_EOL, $body)));
    }