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 2017/08/06 09:32:59 UTC

camel git commit: Fixed example to work with api-docs and cors so a remote swagger ui can call the service.

Repository: camel
Updated Branches:
  refs/heads/master 28ba07448 -> 497b68192


Fixed example to work with api-docs and cors so a remote swagger ui can call the service.


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

Branch: refs/heads/master
Commit: 497b68192e6a4afe041e23fa81fa855949d174f8
Parents: 28ba074
Author: Claus Ibsen <da...@apache.org>
Authored: Sun Aug 6 11:32:47 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Aug 6 11:32:47 2017 +0200

----------------------------------------------------------------------
 .../src/main/resources/application.properties             | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/497b6819/examples/camel-example-spring-boot-geocoder/src/main/resources/application.properties
----------------------------------------------------------------------
diff --git a/examples/camel-example-spring-boot-geocoder/src/main/resources/application.properties b/examples/camel-example-spring-boot-geocoder/src/main/resources/application.properties
index d694863..e3bcba4 100644
--- a/examples/camel-example-spring-boot-geocoder/src/main/resources/application.properties
+++ b/examples/camel-example-spring-boot-geocoder/src/main/resources/application.properties
@@ -20,6 +20,11 @@ camel.springboot.name=Geocoder
 # (this can be omitted as camel will lookup on the classpath and discover it automatic)
 camel.rest.component=servlet
 
+# host and port for the rest service
+camel.rest.port=8080
+camel.rest.host=localhost
+camel.rest.context-path=/camel
+
 # turn on json binding
 camel.rest.binding-mode=json
 
@@ -34,5 +39,10 @@ camel.rest.api-property.api.title=Geocoder API
 camel.rest.api-property.api.version=1.0.0
 camel.rest.api-property.cors=true
 
+# swagger api host and port
+#camel.rest.api-host=localhost:8080/camel/
+
+# turn on cors on the rest service
+camel.rest.enable-cors=true
 camel.rest.cors-headers.foo=bar