Download the PHP package lanser/laravel-openapi-generator without Composer
On this page you can find all versions of the php package lanser/laravel-openapi-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lanser/laravel-openapi-generator
More information about lanser/laravel-openapi-generator
Files in lanser/laravel-openapi-generator
Package laravel-openapi-generator
Short Description Api swagger docs generater with spatia Laravel data
License MIT
Informations about the package laravel-openapi-generator
OpenAPI Generator using Laravel Data
Generate OpenAPI specification from Laravel routes and Laravel Data objects
This repository is just fork from original. Thanks to this person.
Original xolvio/laravel-data-openapi-generator
and this package work with spatie/laravel-data
and
phpdocumentor/reflection-docblock
Install
In composer.json
add this repository:
and
Version
Add a app.version
config in app.php
to set the version in the openapi specification:
Usage
Config
php artisan vendor:publish --tag=openapi-generator-config
Generate
php artisan openapi:generate
View
Swagger available at APP_URL/api/openapi
On your request
On your resource
Example
Final result
For Rout grouping
For add auth
If you want documenting errors you can use Attribute ErrorMessage
Click the schema if you want see what kind of exceptions have in this route
All versions of laravel-openapi-generator with dependencies
spatie/laravel-data Version ^4.6
phpdocumentor/reflection-docblock Version ^5.4
laravel/framework Version ^10.48
spatie/invade Version ^2.0