Open donaldpiret opened 10 years ago
Any help on this? We're really stuck because of this issue.
Hitting this issue as well, can't find a configuration that works.
Just to steal some thunder and offer an alternative here, this is supported by my swagger-blocks gem if you're interested (bearing in mind that it's an unrelated project and a different doc format).
same issue, what did you guys see? 😄
I also want to know.
Facing same issue. Any workaround?
I've been fighting for hours trying to get a working config file for swagger-docs, without success. Could use some help. Here is how things are set up for me (using a Rails app): controllers:
Here is the relevant part of my routes:
Now I'm finding it completely impossible to get swagger-docs to generate the proper path for both the docs and the actual resources
Here's what I'm trying:
If I don't add the controller_base_path property then the generated paths are correct, but documentation for every single endpoint is generated for both api versions (so it doesn't scope by the proper controller namespace). If I do add the controller_base_path property however my resource paths in the generated documentation look like this:
Resulting in duplication. I want to get rid of the api/v2 in the base path of the resources. Please help!