Forum Discussion

JohnnyMax's avatar
JohnnyMax
Visitor
7 years ago

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

  • 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

    • MarcusJ's avatar
      MarcusJ
      Moderator

      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