Our great sponsors
-
laravel-request-docs
Effortless API documentation tool for Laravel applications. Swagger alternative.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I have been using laravel since one and a half years, mainly for apis building. I also use dotnet where the integration of swagger/open api is very easy. With some attributes, we can customize our documentation (http codes, possible return types,..). I am looking for a way to use it in laravel but I don't find one that satisfies me. I have tried [L5-Swagger](https://github.com/DarkaOnLine/L5-Swagger/) but I don't find it practical for several reasons : - Too much comments to write
I have also found [Request docs](https://github.com/rakutentech/laravel-request-docs) which is satisfying but it does not gives information about the returned data and http codes.
I do this except use https://github.com/zircote/swagger-php for writing the open api spec. I can enter the Spatie Data Object classes into the parameters, responses, and properties. Like op said though, it's a lot of comments and stuff to keep updated. Entirely using reflection (or reflection plus ability to manually specify certain extra things) like you're talking about sounds great.
Related posts
- Unleash the Power of Random Scheduling in Laravel with Chaotic Schedule
- Unleash the Power of Random Scheduling in Laravel with Chaotic Schedule
- Unleash the Power of Random Scheduling in Laravel with Chaotic Schedule
- Some package downloads Excel files without telling how much the file size is - can I change that?
-
laravel-crm VS DiceCRM - a user suggested alternative
2 projects | 21 May 2023