-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger-UI Resources Missing #100
Comments
It looks like a php build in server issue. How are you running your php server? Please try this: |
Edit: |
I am not using php server and don't know much about them. I recommend you to try Laravel valet - simple to install, works with a bunch of frameworks. Closing this, cause it's not related to the package. |
Hello, I have the solution, |
In my case the problem was that I was dumping sql queries via the built-in dump() function in laravel. Actually, swagger should be displayed on a blank page, without debug panel, etc. |
I have fixed that issue by steps: just copied files from vendor folder and added in the specific path. Copy all the files from : laravel-yourapp\vendor\swagger-api\swagger-ui\dist Then paste all files in path: laravel-yourapp\public\docs\asset |
what @thanhkhuatdac suggested works great, but better way for servers and mac without copying is symlink: |
This works fine on my localhost but when I deploy the app api/documentation returns 404 error |
You have to use the full file url. It's assuming that you're trying to fetch a route. i.e Use |
Maybe you use common settings for nginx:
Need add:
Or wait - #503 |
php -v
): 7.1.8Description:
When trying to view API Docs, css and js assets are missing. Server returns 404. Do I need to add these into the vendor folder generated from artisan l5-swagger:publish
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: