function __construct($name) { $this->swg = new Swagger(); $this->name = $name; $this->filename = storage_path() . '/swagger/apis/' . $name; $this->default = array('resourcePath' => '/' . $name, 'apiVersion' => \Config::get('swagger::api.version', '1.0.0'), 'swaggerVersion' => $this->swg->config('version'), 'apis' => []); return parent::__construct(); }
function __construct($nickname) { $this->filename = storage_path() . '/swagger/operations/' . Str::snake($nickname); $this->default = array('nickname' => $nickname, 'method' => 'GET'); return parent::__construct(); }
function __construct($nickname) { $this->filename = storage_path() . '/swagger/resources/' . Str::snake($nickname); $this->default = array('basePath' => url(\Config::get('swagger::api.route')), 'operations' => [], 'models' => []); return parent::__construct(); }