-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Class 'Swagger\Swagger' not found #43
Comments
Pull from master at the moment. This will be fixed soon. |
The problem was with Swagger-php, right? |
@tralves That's awesome. I've been a little snowed in on the day job. Please send a pull request? |
Sure! I'd like you to take a look at the Swaggervel/routes..php. I removed a bunch of code that seemed to generate multiple doc files. I didn't know if it was needed, nor how to implement using Swagger-php 2.0, so I just deleted it :). |
@slampenny I am facing the issue that @klimentLambevski has... what was the work around to this? I have pulled from master. When i visit the /docs or api-docs links an error is thrown as given above. |
I am still getting this error, any fix? |
I don't understand how you are getting this error, when the code in the master version has changed (https://github.com/slampenny/Swaggervel/blob/master/src/Jlapp/Swaggervel/routes.php#L39). |
oops i was using 2.0 branch, after switching to dev-master ("jlapp/swaggervel": "master-dev") |
I am using dev-master but when I visit "http://my-laravel-project/api-docs" I get this error. |
when I visit /docs I get this error. |
Can you see the Did you follow this instruction correctly (from the documentation)?
|
@yuichimori same issue with me. using fresh install of laravel 5.2 |
I installed Laravel 5.2.13 and add Jlapp\Swaggervel\SwaggervelServiceProvider like below.
But I still get the same error. I only see
|
I settled to use ApiDocs instead. Time was against me on this.
|
@yuichimori That's a swagger-php error. Maybe you are following the project documentation (found here) which is wrong! I used mostly the examples found here: https://github.com/zircote/swagger-php/tree/master/Examples The code for However, I would advise not to use the swagger php annotations.
The main advantage of having the documentation along with the code so that you could keep code and docs in sync simply disappeared in the middle of all these disadvantages. So in my case, when the api had some changes and another developer coming along, we just quit using swagger-php annotations and just use swagger editor to generate the .json. I still use this package to serve the swagger-ui though. I hope it helps. |
I'm facing the same issue as @yuichimori . |
Thanks very much. I will check other tools |
http://apidocjs.com/ check this out if all else fails or delays on swagger
|
/docs works for me, but api-docs generates a NotFoundHttpException. |
@chenshuiluke See if my commit a75bbbc helps you. |
@DSpeichert, @chenshuiluke that commit will break the package if you are using the updated version of Swaggervel (i.e. the one that's in master). Currently, Swaggervel uses Swagger-php 2.0. |
I installed swaggervel in my project but when i go to /api-docs i get this error
Also i get error when i visit /docs
The text was updated successfully, but these errors were encountered: