Hi Sander,
Those are two separate projects. Swagger-core allows you to generate a Swagger spec from the code. And that’s the json file you saw there. The next step is to take swagger-ui and integrate it into your code for the actual display. Setting it up is fairly easy. It’s a static set of pages you need to host like any web app, and configure it to load the swagger.json from your app. From: <[email protected]> on behalf of Sander Smith <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Wednesday, 11 January 2017 at 15:13 To: Swagger <[email protected]> Subject: Trying to document my Jersey 2 API - how to see the interactive UI I have an existing REST application built with Java and Jersey 2 and would like to document the API with Swagger. I annotated a few classes to try things out and then followed the instructions here: https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup-1.5 I ran my server and went to .../api/swagger.json and expected to see a beautiful UI like Pet Store. Instead, I simply saw a bunch of JSON text. On the positive side, the JSON text does seem to contain the information that I annotated my interface with. What am I doing wrong? How do I get to the fully interactive UI to explore the API with? -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
