Repository: camel Updated Branches: refs/heads/master f1dad83f2 -> ba5672ca3
CAMEL-9337: Add readme to example Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ba5672ca Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ba5672ca Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ba5672ca Branch: refs/heads/master Commit: ba5672ca38c25bf4d950aaea7be2c8e989e74e24 Parents: 8346b7b Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Nov 18 18:06:29 2015 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Nov 18 18:12:23 2015 +0100 ---------------------------------------------------------------------- examples/camel-example-swagger-cdi/README.txt | 38 +++++++++++++++++++++ examples/camel-example-swagger-java/README.txt | 36 +++++++++++++++++++ 2 files changed, 74 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/ba5672ca/examples/camel-example-swagger-cdi/README.txt ---------------------------------------------------------------------- diff --git a/examples/camel-example-swagger-cdi/README.txt b/examples/camel-example-swagger-cdi/README.txt new file mode 100644 index 0000000..7e5fcba --- /dev/null +++ b/examples/camel-example-swagger-cdi/README.txt @@ -0,0 +1,38 @@ +camel-example-swagger-cdi +========================= + +This is an example that uses the rest-dsl to define a rest services which provides three operations + +- GET user/{id} - Find user by id +- PUT user - Updates or create a user +- GET user/findAll - Find all users + +The rest service can be accessed from the following url + + http://localhost:8080/user + +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 + + http://localhost:8080/api-docs + + +You will need to compile this example first: + mvn compile + +To run the example type + mvn camel:run + +To stop the example hit ctrl + c + +If you hit any problems please talk to us on the Camel Forums + http://camel.apache.org/discussion-forums.html + +Please help us make Apache Camel better - we appreciate any feedback you +may have. Enjoy! + +------------------------ +The Camel riders! http://git-wip-us.apache.org/repos/asf/camel/blob/ba5672ca/examples/camel-example-swagger-java/README.txt ---------------------------------------------------------------------- diff --git a/examples/camel-example-swagger-java/README.txt b/examples/camel-example-swagger-java/README.txt new file mode 100644 index 0000000..df8ccd6 --- /dev/null +++ b/examples/camel-example-swagger-java/README.txt @@ -0,0 +1,36 @@ +camel-example-swagger-java +========================== + +This is an example that uses the rest-dsl to define a rest services which provides three operations + +- GET user/{id} - Find user by id +- PUT user - Updates or create a user +- GET user/findAll - Find all users + +The example also embeds the swagger ui. + +You will need to compile this example first: + mvn compile + +To run the example type + mvn jetty:run + +The example is built as a WAR which can also be deployed in a WAR container such as Apache Tomcat. + +The example has documentation in the home.html page which you can access using the following url + + http://localhost:8080/camel-example-swagger-java/ + +This example implements the rest-dsl in XML in the camel-config.xml file. For an example that +is using Java code, see the camel-example-swagger-cdi. + +To stop the example hit ctrl + c + +If you hit any problems please talk to us on the Camel Forums + http://camel.apache.org/discussion-forums.html + +Please help us make Apache Camel better - we appreciate any feedback you +may have. Enjoy! + +------------------------ +The Camel riders!