APIRest::inlineDocumentation PHP Method

inlineDocumentation() public method

Display the APIRest Documentation in Html (parsed from markdown)
public inlineDocumentation ( $file = "apirest.md" )
$file string relative path of documentation file (default 'apirest.md')
    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);
            }
        }
    }