Skip to content
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

Cannot find API declaration when Basepath is included in swagger.json. #1

Open
csmcgee opened this issue Jan 27, 2015 · 0 comments
Open

Comments

@csmcgee
Copy link

csmcgee commented Jan 27, 2015

StaticResourcesController.php
$data['basePath'] = $request->getBaseUrl() . $data['basePath'];

While attempting to use this bundle with static json files I noticed that I get an undefined error if I don't include base path in my api-docs.json file. When I add the base path the base path is added twice and I believe this is caused by the line above. Is there any reason why base path is appended like that?

I looked through swagger-php documentation for what base path is supposed to be and it should just be something like http://domain.com/api. The base path is already set through the request object so why append it with the json base path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant