I was provided Swagger 2.0 json files for a RESTful API my project is using. The provider does not have SDK, so I'm using the Swagger files to generate a starting point to use for integrating with the service. It's split into 50+ files, grouped by collections of endpoints. How would I combine these into a single JSON or YAML file that conforms to the spec so I can generate SDK for all endpoints at once?
1 Answer
You can use a python script to read the contents of each json file and append them to one single json file. Swagger will read each field and render the ui to display all of the files on a single page.
$ref
s to resolve. Would I need to build one file what has$ref
to pull in everything from each of the individual files?