SwaggerLume
SwaggerLume copied to clipboard
Swagger assets are not available or served correctly
trafficstars
Hey,
I have a fresh lumen install with some routes, installed the SwaggerLume package and served the project with php only to find out this:
PHP 7.3.14-6+ubuntu18.04.1+deb.sury.org+1 Development Server started at Tue Feb 18 14:06:25 2020
Listening on http://localhost:8000
Document root is /mnt/c/Users/dodan/Nextcloud/6. Semester/BP/FIIT-BP-Canaries-Backend/public
Press Ctrl-C to quit.
[Tue Feb 18 14:06:28 2020] 127.0.0.1:64793 [200]: /api/documentation
[Tue Feb 18 14:06:28 2020] 127.0.0.1:64794 [404]: /swagger-ui-assets/swagger-ui.css?v=65c6a3f8b8cd425db9b818b1590ab15f - No such file or directory
[Tue Feb 18 14:06:29 2020] 127.0.0.1:64798 [404]: /swagger-ui-assets/swagger-ui-bundle.js?v=eff6c4b6dd9e9fd3a094282b1b4186aa - No such file or directory
[Tue Feb 18 14:06:29 2020] 127.0.0.1:64799 [404]: /swagger-ui-assets/swagger-ui-standalone-preset.js?v=61e294d17f8f77d1c5571420e919cb34 - No such file or directory
[Tue Feb 18 14:06:29 2020] 127.0.0.1:64802 [404]: /swagger-ui-assets/favicon-32x32.png?v=f7648c369f813c00e57de7bd8fb80586 - No such file or directory
[Tue Feb 18 14:06:29 2020] 127.0.0.1:64804 [404]: /swagger-ui-assets/favicon-16x16.png?v=c29c547a02fc5a6c5f53a7fe15e1a469 - No such file or directory
also in browser:

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Update: You need to manually add the files to be served downloaded from the repo in the link
php -S localhost:8000 -t public public/index.php