CAMEL-9412 Correct camel-example-swagger-cdi documentation
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e19417f0 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e19417f0 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e19417f0 Branch: refs/heads/master Commit: e19417f0add7268ea50567cd1287a592d6940fdd Parents: 19c9651 Author: gautric <gaut...@redhat.com> Authored: Thu Dec 10 21:42:12 2015 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Dec 11 08:00:21 2015 +0100 ---------------------------------------------------------------------- examples/camel-example-swagger-cdi/README.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/e19417f0/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 d9d3f19..6da3833 100644 --- a/examples/camel-example-swagger-cdi/README.md +++ b/examples/camel-example-swagger-cdi/README.md @@ -7,30 +7,33 @@ This is an example that uses the rest-dsl to define a rest services which provid - PUT user - Updates or create a user - GET user/findAll - Find all users - - ### Build You will need to compile this example first: - mvn compile + + mvn compile ### Run To run the example type - mvn camel:run + + mvn camel:run The rest service can be accessed from the following url curl http://localhost:8080/user + <http://localhost:8080/user> For example to get a user with id 123 - curl http://localhost:8080/user/123 + curl http://localhost:8080/user/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 -<http://localhost:8080/api-docs> + curl http://localhost:8080/api-doc + +<http://localhost:8080/api-doc> To stop the example hit `ctrl + c`