app\controllers\ExportController::postman PHP Method

postman() public method

public postman ( )
    public function postman()
    {
        /** @var \Phalcon\Config $config */
        $config = $this->di->get(Services::CONFIG);
        $postmanCollection = new ApiCollection($config->application->title, $config->hostName);
        $postmanCollection->addManyCollections($this->application->getCollections());
        $postmanCollection->addManyRoutes($this->application->getRouter()->getRoutes());
        return $this->createItemResponse($postmanCollection, new ApiCollectionTransformer());
    }
ExportController