cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot download resolved swagger.json thru API ?

Highlighted
Visitor

Cannot download resolved swagger.json thru API ?

Hi there,

 

Considering this documentation: https://app.swaggerhub.com/help/apis/downloading-swagger-definition we cannot download a resolved swagger.json we have an unresolved one! 

 

C:\Users\JohnnyKnoblauch>curl -X GET "https://api.swaggerhub.com/apis/IMN/merchant_actor/1.0?resolve=true" -H "accept: application/json" -H "Authorization: MYTOKEN" --insecure > test3.json

 

 

 

Could you help us on that please ?

Johnny

2 REPLIES 2
Highlighted
Moderator

Re: Cannot download resolved swagger.json thru API ?

Hi JohnnyMax,

 

I have reproduced this issue and opened a defect for it.  This does work using the Swaggerhub UI as an alternative way to get your spec with the domain and external references resolved to local references.

 

Regards,

Marcus

SmartBear Support



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Moderator

Re: Cannot download resolved swagger.json thru API ?

Hi JohnnyMax,

 

I have been informed by the Swaggerhub team that this functionality has not been implemented yet.  The documentation will be updated to remove the content of using the API with the resolve query parameter until this functionality is implemented.

 

 

Regards,

Marcus

SmartBear Support



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video: