public function generateAPI($config, $bar)
    {
        if ($config['options-api'] || $config['options-apiOnly']) {
            $this->crudGenerator->createApi($config);
        }
        $bar->advance();
    }
public function generateAPI($config, $bar)
    {
        if ($config['options-api'] || $config['options-apiOnly']) {
            $this->crudGenerator->createApi($config);
        }
        $bar->advance();
    }
public function generateAPI ( $ config , $ bar ) { if ( $ config [ 'options-api' ] || $ config [ 'options-apiOnly' ] ) { $ this -> crudGenerator -> createApi ( $ config ) ; } $ bar -> advance ( ) ; }
Generate api elements.

@param array                                         $config
@param \Symfony\Component\Console\Helper\ProgressBar $bar
Generate api elements .