This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new d6bfcae [CAMEL-14453]ensure Camel Rest Swagger example work again
d6bfcae is described below
commit d6bfcae07a6493c6f2c679cc613991c231658613
Author: Freeman Fang <[email protected]>
AuthorDate: Tue Jan 28 16:40:15 2020 -0500
[CAMEL-14453]ensure Camel Rest Swagger example work again
---
examples/camel-example-rest-swagger/README.md | 6 +++---
examples/camel-example-rest-swagger/pom.xml | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/examples/camel-example-rest-swagger/README.md
b/examples/camel-example-rest-swagger/README.md
index d8c0bcb..4795297 100644
--- a/examples/camel-example-rest-swagger/README.md
+++ b/examples/camel-example-rest-swagger/README.md
@@ -17,12 +17,12 @@ The example by default uses the PetStore demo hosted on
swagger.io and
invokes the `getInventory` operation. You can make it call any API
that you have Swagger specification for and any operation with simple
arguments, for instance this retrives a pet from the PetStore demo with
-ID `9584`:
+ID `14`:
$ java -jar target/camel-example-rest-swagger-*.jar \
- --swagger=http://petstore.swagger.io/v2/swagger.json \
+ --swagger=https://petstore.swagger.io/v2/swagger.json \
--operation=getPetById \
- --petId=9584
+ --petId=14
## More information
diff --git a/examples/camel-example-rest-swagger/pom.xml
b/examples/camel-example-rest-swagger/pom.xml
index 786a994..b6c9bcd 100644
--- a/examples/camel-example-rest-swagger/pom.xml
+++ b/examples/camel-example-rest-swagger/pom.xml
@@ -63,8 +63,9 @@
<dependencies>
<dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-undertow-starter</artifactId>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-http-starter</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>