Laravel-apidoc-generator: Empty documentation

Created on 23 Aug 2017  路  3Comments  路  Source: mpociot/laravel-apidoc-generator

Hi,

After I ran php artisan api:generate --routePrefix="api/v1/*", the 'public/docs' folder was created, but the inside the doc is empty.

I have followed through the instruction but still can't get it right.

I'm using: Laravel 5.4, Passport to authenticate user

Anyone has this same problem? or did I miss something?

Here is the screenshot of the generated doc:

screencapture-xoxo-app-docs-1503455133021

Most helpful comment

Hi. When I used --routePrefix="" incorrectly, I also created emtpy docs. Try playing around with using the parameter correctly in order to get the docs you're looking for.

All 3 comments

Hi. When I used --routePrefix="" incorrectly, I also created emtpy docs. Try playing around with using the parameter correctly in order to get the docs you're looking for.

I'm having the same problem and I tried setting routePrefix to * with no luck.

Edit: turns out in my case the problem was caused by PHPStorm's Command Line Console escaping the quotes. Removing the quotes fixed the problem.

screenshot_2017-12-12_20-02-45

Wonderful package.

Hi, I had the same problem and fixed it by changing the _app/Http/Request.php_ to

screen shot 2018-06-30 at 11 09 18 pm

I'm using Laravel 5.5

Was this page helpful?
0 / 5 - 0 ratings