hussein4alaa / laravel-g4t-swagger-auto-generate Goto Github PK
View Code? Open in Web Editor NEWauto generate swagger in laravel
License: MIT License
auto generate swagger in laravel
License: MIT License
i want to add description for apis in swagger , and i want to edit '200 successful operation' in swagger
This is the Enum JourneyType:
['nullable', 'string', new Enum(JourneyType::class)], now i want to have these enums as select dropdown in swagger if it is possible? because it simplify the documentation process. Thank you in advance. Happy Coding !!!!!!!.Hello,
first of all, thank you for making this amazing project, I want to ask about the problems I'm experiencing,
when it was up on the server, and tried the route to post
, the response I got was 419
when i check in the response, it return CSRF token mismatch
.
but previously it ran smoothly when I tried it in the local environment
Are there any additional settings that i miss?
Just for information, I use Laravel 10
Thank You
i am using laravel sail when i try to install the package i got the following errors
require(/var/www/html/vendor/g4t/swagger/src/routes/web.php): Failed to open stream: No such file or directory
solution
looks like a case sensitive issue when i rename a folder src/Routes
to src/routes
and run command sail composer dump-autoload
package get installed
After then i got another issue
When i navigate to route swagger/documentation
i got following error
Trait "G4T\Swagger\Helpers" not found
Describe the bug
When you use invokable routes and controllers, you get the following error:
Undefined array key 1 {"exception":"[object] (ErrorException(code: 0): Undefined array key 1 at /var/www/html/vendor/g4t/swagger/src/Helpers.php:55)
To Reproduce
__invoke()
method.__invoke()
method in the Controller.Route::get('/users', UserController::class)
->name('users');
/swagger/documentation
and see the above error.Expected behavior
It would be great to allow invokable controllers and routes if possible. It errors as there is no @
in the $controllerMethod for invokable routes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.