You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2014/08/10 11:42:13 UTC
[07/11] git commit: Rest DSL. camel-swagger work in progress.
Rest DSL. camel-swagger work in progress.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8b3d6450
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8b3d6450
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8b3d6450
Branch: refs/heads/master
Commit: 8b3d64503ddedb391e56102538992c81a0416edf
Parents: b234476
Author: Claus Ibsen <da...@apache.org>
Authored: Sun Aug 10 08:50:10 2014 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Aug 10 08:50:10 2014 +0200
----------------------------------------------------------------------
examples/camel-example-servlet-rest-tomcat/README.txt | 3 +++
.../src/main/webapp/index.html | 8 ++++++++
2 files changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/8b3d6450/examples/camel-example-servlet-rest-tomcat/README.txt
----------------------------------------------------------------------
diff --git a/examples/camel-example-servlet-rest-tomcat/README.txt b/examples/camel-example-servlet-rest-tomcat/README.txt
index 81eac72..48b7fdd 100644
--- a/examples/camel-example-servlet-rest-tomcat/README.txt
+++ b/examples/camel-example-servlet-rest-tomcat/README.txt
@@ -18,6 +18,9 @@ deploy folder of Apache Tomcat.
And then hit this url from a web browser which has further instructions
http://localhost:8080/camel-example-servlet-rest-tomcat
+Included in this example is an api browser using Swagger. You can see the API from this url:
+ http://localhost:8080/camel-example-servlet-rest-tomcat/api-docs
+
You can also try the example from Maven using
mvn jetty:run
http://git-wip-us.apache.org/repos/asf/camel/blob/8b3d6450/examples/camel-example-servlet-rest-tomcat/src/main/webapp/index.html
----------------------------------------------------------------------
diff --git a/examples/camel-example-servlet-rest-tomcat/src/main/webapp/index.html b/examples/camel-example-servlet-rest-tomcat/src/main/webapp/index.html
index ac6b54b..1ea929a 100644
--- a/examples/camel-example-servlet-rest-tomcat/src/main/webapp/index.html
+++ b/examples/camel-example-servlet-rest-tomcat/src/main/webapp/index.html
@@ -55,6 +55,14 @@ From the command shell you can use curl to access the service as shown below:
</pre>
<p/>
+This example offers an API browser using Swagger which is accessible from the following link
+<ul>
+ <li><a href="api-docs">api-docs</a> - overview of the apis from the REST services</li>
+ <li><a href="api-docs/user">api-docs/user</a> - api of the user REST service</li>
+</ul>
+
+
+<p/>
If you hit any problems please let us know on the
<a href="http://camel.apache.org/discussion-forums.html">Camel Forums</a>
<br/>