Forum Discussion

lklaus's avatar
lklaus
Visitor
2 years ago

Export API definition from explore

My goal is to create a swagger definition for an existing API. My understanding is the API must be published to swagger hub, where it can then be downloaded. I have tested and saved some API calls in the "spaces" area of explore, but am unable to add them to swagger hub. When I attempt to use the "Export API to SwaggerHub" button, the operation fails with "Failed exporting myAPI version 0.0.1 in SwaggerHub. Error Unexpected end of JSON input". I am not sure what I am doing incorrectly. Am I even on the right track?

  • Hi lklaus 

     

    Yes, you are on the right track. Could you share some information about the API you are exploring (endpoint, sample request/response)? Is it an API that can be documented using OpenAPI?

     

    Kind regards,

    Frank