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

Specify multiple paths or folders for swagger options url #104

Open
aniketstiwari opened this issue Nov 3, 2022 · 0 comments
Open

Specify multiple paths or folders for swagger options url #104

aniketstiwari opened this issue Nov 3, 2022 · 0 comments

Comments

@aniketstiwari
Copy link

aniketstiwari commented Nov 3, 2022

How to specify different paths or folders for swagger options.url. Right now swagger looks inside a single directory

GrapeSwaggerRails.options.url = "/api/services/swagger_doc.json"

What I am looking for If I have multiple directories how can I specify them? I have tried like the below but I get an error **Can't read swagger JSON from **

GrapeSwaggerRails.options.url = ["/api/services/swagger_doc.json", "/retailers/users/swagger_doc.json" ]
@aniketstiwari aniketstiwari changed the title Specify different paths or folders for swagger Specify different paths or folders for swagger options url Nov 3, 2022
@aniketstiwari aniketstiwari changed the title Specify different paths or folders for swagger options url Specify multiple paths or folders for swagger options url Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants