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 2016/03/21 14:48:32 UTC

[2/2] camel git commit: CAMEL-9594: Use swagger.json for api-docs

CAMEL-9594: Use swagger.json for api-docs


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3bad7423
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3bad7423
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3bad7423

Branch: refs/heads/camel-2.17.x
Commit: 3bad742398541113d518225f4799075c29c35833
Parents: f0f5a33
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Mar 21 14:48:03 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Mar 21 14:48:22 2016 +0100

----------------------------------------------------------------------
 examples/camel-example-spark-rest/README.md  | 8 +++++---
 examples/camel-example-swagger-cdi/README.md | 9 ++++++---
 2 files changed, 11 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3bad7423/examples/camel-example-spark-rest/README.md
----------------------------------------------------------------------
diff --git a/examples/camel-example-spark-rest/README.md b/examples/camel-example-spark-rest/README.md
index 6bf0a79..4abd1c3 100644
--- a/examples/camel-example-spark-rest/README.md
+++ b/examples/camel-example-spark-rest/README.md
@@ -40,11 +40,13 @@ And to list all the users
 
 <http://localhost:8080/user/view/list>
 
-The rest services provides Swagger API which can be accessed from the following url
+The rest services provides Swagger API which can be accessed
+from the following url in json or yaml format:
 
-    curl http://localhost:8080/api-doc
+    curl http://localhost:8080/api-doc/swagger.json
+    curl http://localhost:8080/api-doc/swagger.yaml
 
-<http://localhost:8080/api-doc>
+<http://localhost:8080/api-doc/swagger.json>
 
 To stop the example hit <kbd>ctrl</kbd>+<kbd>c</kbd>
 

http://git-wip-us.apache.org/repos/asf/camel/blob/3bad7423/examples/camel-example-swagger-cdi/README.md
----------------------------------------------------------------------
diff --git a/examples/camel-example-swagger-cdi/README.md b/examples/camel-example-swagger-cdi/README.md
index dde2e01..aa9a0bb 100644
--- a/examples/camel-example-swagger-cdi/README.md
+++ b/examples/camel-example-swagger-cdi/README.md
@@ -29,11 +29,14 @@ For example to get a user with id 123
 
 <http://localhost:8080/user/123>
 
-The rest services provides Swagger API which can be accessed from the following url
+The rest services provides Swagger API in json or yaml format
+which can be accessed from the following url
 
-    curl http://localhost:8080/api-doc
+    curl http://localhost:8080/api-doc/swagger.json
+    curl http://localhost:8080/api-doc/swagger.yaml
 
-<http://localhost:8080/api-doc>
+
+<http://localhost:8080/api-doc/swagger.json>
 
 To stop the example hit <kbd>ctrl</kbd>+<kbd>c</kbd>