public function inlineDocumentation($file = "apirest.md") { global $CFG_GLPI; if ($this->format == "html") { parent::inlineDocumentation($file); } else { if ($this->format == "json") { echo file_get_contents(GLPI_ROOT . '/' . $file); } } }