ruby-grape / grape-swagger-rails

Swagger UI as Rails Engine for grape-swagger gem.
MIT License
251 stars 197 forks source link

Specify multiple paths or folders for swagger options url #104

Open aniketstiwari opened 2 years ago

aniketstiwari commented 2 years ago

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" ]