Dudi
Dudi

Reputation: 2430

Get REST API documented in single JSON using Swagger

I have a Java +JAX-RS + Jeresy environment and successfully integrated Swagger. Everything works dynamically and json files are created per resource.

Is there a way to extract all of the JSON representations into a single file so I could share it with others in offline? I am looking for a single file JSON that I can then read using Swagger-UI.

Upvotes: 0

Views: 507

Answers (1)

Ron
Ron

Reputation: 14810

Swagger 1.2 doesn't support a single-file structure. That was changed in Swagger 2.0. So as long as you're with Swagger 1.2, you'd have the share the set of files.

Upvotes: 1

Related Questions