appointer / swaggervel

Swagger for Laravel
70 stars 40 forks source link

Fix for swagger template only showing blank page instead of docs. #21

Closed wecodelaravel closed 5 years ago

wecodelaravel commented 5 years ago

This was causing my /api/docs to not work so i fixed it and now i am sharing with everyone.

TemaSM commented 5 years ago

@laravelcoder that's incorrect way of resolving this issue.

There're special variables in config file swaggervel.php for that: https://github.com/appointer/swaggervel/blob/baf079f91f545a1c809edeeb4112185358a44f50/src/config/swaggervel.php#L16 and https://github.com/appointer/swaggervel/blob/baf079f91f545a1c809edeeb4112185358a44f50/src/config/swaggervel.php#L23 @Spartaa just insert / in front of default values. I will publish new PR, so it will close #22 issue.

fgreinus commented 5 years ago

I'd really appreciate a patch for this - but yeah, this PR is (in my opinion too) not the right way to solve it, as the changes are redundant because of existing config options.

ikramulmustafa commented 5 years ago

@laravelcoder that's incorrect way of resolving this issue.

There're special variables in config file swaggervel.php for that: swaggervel/src/config/swaggervel.php

Line 16 in baf079f

 'doc-route' => 'docs', 

and swaggervel/src/config/swaggervel.php

Line 23 in baf079f

 'ui-resource-path' => 'vendor/swaggervel', 

@Spartaa just insert / in front of default values. I will publish new PR, so it will close #22 issue.

I am still facing the same issue should i remove last changes? which i made by seeing "laravelcoder "

TemaSM commented 5 years ago

@Spartaa yes. Revert any changes made directly to source files of swaggervel and apply commit (5f4313d) to your config file

ikramulmustafa commented 5 years ago

@TemaSM @fgreinus I upload my files from local host to live server and i am receiving this error again i have checked i just move all files from here to there is there anything you can guide me about that issue? Please

ikramulmustafa commented 5 years ago

Capture