Manually writting the swagger is always a tedious process either you write the json file or writing the swagger annotation to generate the json file
This package will automatically generate the swagger files by scanning the form request files, The package can easily be installed by running the composer in your project’s root folder.
composer require vigneshc91/laravel-swagger
After installation to generate the swagger run the command in your terminal
php artisan laravel-swagger:generate --filter="api" --auth="jwt" > public/docs/swagger.json
You can use several options available in that Ref: https://vigneshc91.github.io/laravel-swagger/
No comments:
Post a Comment