Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
23.36k stars 2.29k forks source link

DownloadDefinitionUrl for multiple OpenAPI specs #2478

Closed monica-m-ps closed 7 months ago

monica-m-ps commented 8 months ago

Describe the bug Hello. I have 2 OAS files

https://docs.dojo.tech/payments/api https://docs.dojo.tech/unified-payments/api/

They are part of the same repository. Is there a way to enable downloading of the respective json files separately? If you see, I can only download the json in the first link...

I have configured downloadDefinitionUrl but of course it takes only one file.

Expected behavior We should be able to download JSON files of multiple openapi specs.

Additional context We are expecting more APIs so this use case will really help. Thank you!

ZyzychO commented 8 months ago

Hello @monica-m-ps I see the download button in both links to OAS.

Could you please confirm if the issue was resolved?

monica-m-ps commented 7 months ago

Yes sorry this is resolved. I had to set the location to ./bundled.json instead of bundled.json. And it can download multiple jsons.