You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Utilizar el siguiente comando para crear las rutas, modelos, controladores, etc. Para esto es necesario poner en primer lugar en singular y en ingles (por ejemplo usuario se usa User) y luego el nombre de la tabla que debio ser modelada en plural y todos sus elementos en ingles (por ejemplo usuario se usa users)
php artisan infyom:api_scaffold User --fromTable --tableName=users --save
Servir la aplicacion
php artisan serve
Acceder a la documentacion de la api
localhost:8000/api/docs
Acceder a la aplicacion generada en Blade
localhost:8000
consumir la api
localhost:8000/api/users
Para que swaggervel funcione en el "try it out"
es necesario añadir a la ruta de la api /v1 a cada ruta declarada en routes/api.php
Execute composer require appointer/swaggervel --dev within your laravel root directory
Add Appointer\Swaggervel\SwaggervelServiceProvider::class to your providers array in app/config/app.php above your route provider, to avoid any catch-all routes
Run php artisan vendor:publish --tag=public to push swagger-ui to your public folder (can be found in public/vendor/swaggervel).
Optionally run php artisan vendor:publish --tag=config to push the swaggervel default config into your application's config directory.
Optionally run php artisan vendor:publish --tag=views to push the swaggervel index view file into resources/views/vendor/swaggervel.