Thanks Ron. That's exactly what I needed.

On Wednesday, January 11, 2017 at 6:16:33 PM UTC-5, Ron wrote:
>
> 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 
> <https://github.com/swagger-api/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: *<swagger-sw...@googlegroups.com <javascript:>> on behalf of 
> Sander Smith <smi...@sericontech.com <javascript:>>
> *Reply-To: *"swagger-sw...@googlegroups.com <javascript:>" <
> swagger-sw...@googlegroups.com <javascript:>>
> *Date: *Wednesday, 11 January 2017 at 15:13
> *To: *Swagger <swagger-sw...@googlegroups.com <javascript:>>
> *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 swagger-swaggersocket+unsubscr...@googlegroups.com <javascript:>.
> 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to