Repository: camel
Updated Branches:
  refs/heads/master befbfbd66 -> f785c3965


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/f785c396
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f785c396
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f785c396

Branch: refs/heads/master
Commit: f785c396540691e6655ea8378d40d0b9cf8fc6a5
Parents: befbfbd
Author: Claus Ibsen <davscl...@apache.org>
Authored: Sun Aug 6 11:34:16 2017 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Sun Aug 6 11:36:19 2017 +0200

----------------------------------------------------------------------
 .../src/main/resources/application.properties            | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f785c396/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 e3bcba4..130af2f 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
@@ -25,6 +25,11 @@ camel.rest.port=8080
 camel.rest.host=localhost
 camel.rest.context-path=/camel
 
+# turn on cors on the rest service
+camel.rest.enable-cors=true
+# we can configure additional headers if we like
+#camel.rest.cors-headers.foo=bar
+
 # turn on json binding
 camel.rest.binding-mode=json
 
@@ -39,10 +44,4 @@ 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
 

Reply via email to