Raml\ApiDefinition::getDocumentationList PHP Method

getDocumentationList() public method

Get the documentation of the API
public getDocumentationList ( ) : array
return array
    public function getDocumentationList()
    {
        return $this->documentationList;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @param string $output file to generate
  */
 public function generate($output)
 {
     $html = $this->twig->render('index.html.twig', array('title' => $this->specification->getTitle(), 'base_url' => $this->specification->getBaseUrl(), 'security' => $this->specification->getSecuritySchemes(), 'resources' => $this->specification->getResources(), 'documentation' => $this->specification->getDocumentationList(), 'base_dir_raml' => $this->base_dir_raml, 'version' => $this->specification->getVersion()));
     file_put_contents($output, $html);
 }