Re: Running Swagger UI on Tomcat

2018-02-22 Thread Sayak Paul
w...@googlegroups.com > on behalf of Sayak > Paul <spsay...@gmail.com > > *Reply-To: *"swagger-sw...@googlegroups.com " < > swagger-sw...@googlegroups.com > > *Date: *Thursday, February 22, 2018 at 07:49 > *To: *Swagger <swagger-sw...@googlegroups.com &g

Re: Running Swagger UI on Tomcat

2018-02-22 Thread Ron Ratovsky
gt; Date: Thursday, February 22, 2018 at 07:49 To: Swagger <swagger-swaggersocket@googlegroups.com> Subject: Re: Running Swagger UI on Tomcat Okay. And what about the URL of the yaml/json spec? How do I construct that? On Thursday, February 22, 2018 at 8:15:56 PM UTC+5:30, Ron wrot

Re: Running Swagger UI on Tomcat

2018-02-22 Thread Sayak Paul
> swagger-sw...@googlegroups.com > > *Date: *Thursday, February 22, 2018 at 07:43 > *To: *Swagger <swagger-sw...@googlegroups.com > > *Subject: *Re: Running Swagger UI on Tomcat > > > > So how do I construct the URL of the spec file? And suppose the war of my &

Re: Running Swagger UI on Tomcat

2018-02-22 Thread Ron Ratovsky
k Paul <spsayakp...@gmail.com> Reply-To: "swagger-swaggersocket@googlegroups.com" <swagger-swaggersocket@googlegroups.com> Date: Thursday, February 22, 2018 at 07:43 To: Swagger <swagger-swaggersocket@googlegroups.com> Subject: Re: Running Swagger UI on Tomcat So how

Re: Running Swagger UI on Tomcat

2018-02-22 Thread Sayak Paul
r-sw...@googlegroups.com > on behalf of Sayak > Paul <spsay...@gmail.com > > *Reply-To: *"swagger-sw...@googlegroups.com " < > swagger-sw...@googlegroups.com > > *Date: *Wednesday, February 21, 2018 at 20:57 > *To: *Swagger <swagger-sw...@googlegroups.com >

Re: Running Swagger UI on Tomcat

2018-02-22 Thread Ron Ratovsky
com> on behalf of Sayak Paul <spsayakp...@gmail.com> Reply-To: "swagger-swaggersocket@googlegroups.com" <swagger-swaggersocket@googlegroups.com> Date: Wednesday, February 21, 2018 at 20:57 To: Swagger <swagger-swaggersocket@googlegroups.com> Subject: Re: Running S

Re: Running Swagger UI on Tomcat

2018-02-21 Thread Sayak Paul
Thanks Ron for clearing the doubts. Furthermore, what if I am having the spec locally inside the webapps folder? How do I point it to the index.html of Swagger-UI? And also I didn't get CORS will not be needed if my app and Swagger UI are running in the same application. Could you please

Re: Running Swagger UI on Tomcat

2018-02-21 Thread Ron Ratovsky
It should work, yes. Pretty much like you’d serve any other static content. You’d need to modify the index.html and point it the the URL where your API definition is served. You do not need to enable CORS if the app and swagger-ui run in the same application. From: