Generate a postman collection and a markdown file of all your routes. To map HTTP-Bodys an validation rules to the output you have to use FormRequests.
You can install the package via composer:
composer require nicolaskuster/laravel-apidoc
You can publish the config-file with:
php artisan vendor:publish --provider="Nicolaskuster\ApiDoc\Providers\ApiDocServiceProvider"
public function register()
{
if ($this->app->environment() === 'local') {
$this->app->register(\Nicolaskuster\ApiDoc\Providers\ApiDocServiceProvider::class);
}
}
php artisan api:doc