Swaggervel icon indicating copy to clipboard operation
Swaggervel copied to clipboard

how to scan other directory swagger annotations?

Open hufeng903 opened this issue 8 years ago • 2 comments

i add modules directory in my projects. how to scan other directory swagger annotations?
is config /config/swaggervel.php app-dir?

hufeng903 avatar Feb 21 '17 08:02 hufeng903

app-dir is string not array .so i modify vendor\jlapp\swaggervel\src\Jlapp\Swaggervel\routes.php. i add if (Config::get('swaggervel.generateAlways')) { if (is_array(Config::get('swaggervel.app-dir'))) { foreach (Config::get('swaggervel.app-dir') as $item) { $appDir[] = base_path() . "/" .$item; } } else { $appDir = base_path() . "/" . Config::get('swaggervel.app-dir'); }

let app-dir support array. this can scan modules directory.
any other way?

hufeng903 avatar Feb 21 '17 08:02 hufeng903

You could also give https://github.com/appointer/Swaggervel a try. I merged a pul request, that directly supports multi-directory scanning. And i actively maintain that swaggervel-fork.

fgreinus avatar Apr 19 '17 12:04 fgreinus