This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.20.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 30d1cb67ef7ac8048eb2644a53b9b45a818c1352 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Feb 2 10:46:17 2018 +0100 CAMEL-12176: Fixed doc to say that query is required in dropbox search operation. --- .../camel-dropbox/src/main/docs/dropbox-component.adoc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/camel-dropbox/src/main/docs/dropbox-component.adoc b/components/camel-dropbox/src/main/docs/dropbox-component.adoc index beae12f..d0c01c3 100644 --- a/components/camel-dropbox/src/main/docs/dropbox-component.adoc +++ b/components/camel-dropbox/src/main/docs/dropbox-component.adoc @@ -17,14 +17,14 @@ Maven users will need to add the following dependency to their `pom.xml` for this component: [source,xml] ------------------------------------------------------------- +---- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-dropbox</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency> ------------------------------------------------------------- +---- === URI format @@ -39,7 +39,7 @@ perform on Dropbox remote folder. === Operations [width="100%",cols="40%,60%",options="header",] -|======================================================================= +|=== |Operation |Description |`del` |deletes files or directories on Dropbox @@ -51,7 +51,7 @@ perform on Dropbox remote folder. |`put` |upload files on Dropbox |`search` |search files on Dropbox based on string queries -|======================================================================= +|=== *Operations* require additional options to work, some are mandatory for the specific operation. @@ -360,9 +360,10 @@ Below are listed the options for this operation: |`remotePath` |`true` |Folder on Dropbox where to search in. -|`query` |`false` |A space-separated list of sub-strings to search for. A file matches only +|`query` |`true` |A space-separated list of sub-strings to search for. A file matches only if it contains all the sub-strings. If this option is not set, all files -will be matched. +will be matched. The query is required to be provided in either the endpoint configuration +or as a header `CamelDropboxQuery` on the Camel message. |=== ==== Samples @@ -373,6 +374,7 @@ from("dropbox://search?accessToken=XXX&clientIdentifier=XXX&remotePath=/XXX&quer .to("mock:result"); from("direct:start") + .setHeader("CamelDropboxQuery", constant("XXX")) .to("dropbox://search?accessToken=XXX&clientIdentifier=XXX&remotePath=/XXX") .to("mock:result"); ---- -- To stop receiving notification emails like this one, please contact davscl...@apache.org.