It keep showing "Unable to render this definition", but when I using Swagger editor, the display worked properly. #585
AlexWS1048575
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I try to show api docs, it keep showing messsage like this :
I have trying to downgrade to 8.0 version, it doesn't work
As my composer.json file
I have following how to use Swagger and it works, but when I trying to php artisan serve, then I open in my localhost, it didn't work. But when I using editor it works.
Here's my screenshot when I using editor :
![swagger editor](https://private-user-images.githubusercontent.com/101855082/307351528-668394b4-38e7-4502-8bc8-346fa6ba8de3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNDM2NTksIm5iZiI6MTcyNTA0MzM1OSwicGF0aCI6Ii8xMDE4NTUwODIvMzA3MzUxNTI4LTY2ODM5NGI0LTM4ZTctNDUwMi04YmM4LTM0NmZhNmJhOGRlMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQxODQyMzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MTUwMjNhNDdkZGRlZTliZDhmMmQ0MjE4ZDE4NjY2Mzc0NGY1NjdjZDZlZWI2Yjg1OWE0YmU1NGI0ZjgyNjYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.cERiWYVNpdh8d3mMgoZjLSAkrVye8VBirrkfecRKj4g)
Even though I edit the l5-swagger.php, it didn't work. It keep showing Unable to render this definition
Usually when I using this, it should be worked.
![trouble](https://private-user-images.githubusercontent.com/101855082/307352473-54aec504-f586-4a01-80ba-73ececa3ea06.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNDM2NTksIm5iZiI6MTcyNTA0MzM1OSwicGF0aCI6Ii8xMDE4NTUwODIvMzA3MzUyNDczLTU0YWVjNTA0LWY1ODYtNGEwMS04MGJhLTczZWNlY2EzZWEwNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQxODQyMzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMDJmNTU5OGZmZjJiODMyYjVlNWJiN2QyMDYyOTg0OTZhOGRjY2Q0YzM2MTVlNzYzYWJiZWQ0MmViODBlYjhhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.PKiIn2WV1iJLhMR-RrAjk1lB1sfFWA71Q7dIOvQd-qg)
As I usually open, it enforce me to enter username and password first.
![trouble2](https://private-user-images.githubusercontent.com/101855082/307353059-0e3b7eb2-87ab-4080-b9ac-ad40bef6705f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNDM2NTksIm5iZiI6MTcyNTA0MzM1OSwicGF0aCI6Ii8xMDE4NTUwODIvMzA3MzUzMDU5LTBlM2I3ZWIyLTg3YWItNDA4MC1iOWFjLWFkNDBiZWY2NzA1Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMFQxODQyMzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NjM5YTMxM2FlNzA2YWExZjBlMGQ0OWY2OTk2MWViODgyZmMxNWM3OGQ3N2Y1ZGIxODE4NjY1MzkyNDEyZjgwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.d0stLZm6YT1WFmO-OpQn2qVhIBFNhu2i1hwR51kxqa0)
How to make it worked like editor based on my screenshot?
Beta Was this translation helpful? Give feedback.
All reactions