Wednesday, April 12, 2017

Generate query parameters docs without using form request validation rules

I am using mpociot/laravel-apidoc-generator package to generate documentation for my API. It works perfectly besides one thing I have not figure out, generating query parameters table with the rules and description.

According to the documentation, it will automatically create it if I use form request validation. But, I validate it differently and that is not an option for me. Is there way for me to generate the description tables based on my comment in phpDoc?

enter image description here

Thanks



via geckob

Advertisement