Embedding swagger editor in my website

668 views
Skip to first unread message

Meera nyjen

unread,
Oct 26, 2016, 11:39:51 AM10/26/16
to swagger-sw...@googlegroups.com
I am trying to organize all the available REST api's in different projects into a single location. So any user can access the rest api documentation of all these API's of different projects through a browser. 

As a start up , I followed the below steps to do it: 
1. Installed Apache Tomcat server in my machine
2. Downloaded swagger ui project from github
3. Made use of dist folder by copying it to webapps of Tomcat installtion folder
4. Created a yaml using swagger editor
5. Modified the index.html in dist folder by adding my yaml in index html 
6. Then I am able to access it through the url. (http://locahost:8080/dist) and able to view the API defined in my yaml. 

My next step is to embed swagger-editor into my website so that users can edit the existing API documentation and view it live. 

In such an environment with Apache tomcat and swagger ui, is it possible to do such a thing? 







Ron Ratovsky

unread,
Oct 31, 2016, 5:36:09 PM10/31/16
to swagger-sw...@googlegroups.com

Should be, yes.

--
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-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mvn

unread,
Nov 1, 2016, 11:02:35 AM11/1/16
to Swagger

Thanks for the reply. I downloaded swagger editor package and is working on it. Now I am able  to launch the swagger editor through Tomcat. 

As a next step, I launched this swagger editor from my website. But the swagger editor is getting opened with a default yaml.  Is there any way to open the swagger editor

with any of my yaml files ? i.e, whenever user clicks on API, corresponding yaml should get opened in swagger editor.. Please help. 


To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages