This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 3242fe8 CAMEL-10013: Implemented test validating syntax of endpoint.
Fixed syntax problems.
3242fe8 is described below
commit 3242fe8409b07280c76bc151826aa546d468879c
Author: Jan Bednář <[email protected]>
AuthorDate: Mon Jul 8 01:09:26 2019 +0200
CAMEL-10013: Implemented test validating syntax of endpoint. Fixed syntax
problems.
---
.../camel/catalog/CamelCatalogJsonSchemaTest.java | 42 ++++++++++++++++++++--
.../src/main/docs/chatscript-component.adoc | 2 +-
.../component/chatscript/ChatScriptEndpoint.java | 2 +-
.../src/main/docs/google-bigquery-component.adoc | 2 +-
.../main/docs/google-bigquery-sql-component.adoc | 4 +--
.../google/bigquery/GoogleBigQueryEndpoint.java | 2 +-
.../bigquery/sql/GoogleBigQuerySQLEndpoint.java | 2 +-
.../camel-ipfs/src/main/docs/ipfs-component.adoc | 6 ++--
.../camel/component/ipfs/IPFSConfiguration.java | 11 +++---
.../apache/camel/component/ipfs/IPFSEndpoint.java | 2 +-
.../main/docs/pg-replication-slot-component.adoc | 2 +-
.../slot/PgReplicationSlotEndpoint.java | 2 +-
.../src/main/docs/soroush-component.adoc | 2 +-
.../soroushbot/component/SoroushBotEndpoint.java | 2 +-
.../src/main/docs/wordpress-component.adoc | 2 +-
.../component/wordpress/WordpressEndpoint.java | 2 +-
components/readme.adoc | 14 ++++----
.../dsl/ChatScriptEndpointBuilderFactory.java | 2 +-
.../dsl/GoogleBigQueryEndpointBuilderFactory.java | 2 +-
.../GoogleBigQuerySQLEndpointBuilderFactory.java | 8 ++---
.../endpoint/dsl/IPFSEndpointBuilderFactory.java | 9 ++++-
.../PgReplicationSlotEndpointBuilderFactory.java | 3 +-
.../dsl/SoroushBotEndpointBuilderFactory.java | 2 +-
.../dsl/WordpressEndpointBuilderFactory.java | 2 +-
.../modules/ROOT/pages/chatscript-component.adoc | 2 +-
.../ROOT/pages/google-bigquery-component.adoc | 2 +-
.../ROOT/pages/google-bigquery-sql-component.adoc | 4 +--
.../modules/ROOT/pages/ipfs-component.adoc | 6 ++--
.../ROOT/pages/pg-replication-slot-component.adoc | 2 +-
.../modules/ROOT/pages/soroush-component.adoc | 2 +-
.../modules/ROOT/pages/wordpress-component.adoc | 2 +-
31 files changed, 100 insertions(+), 49 deletions(-)
diff --git
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogJsonSchemaTest.java
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogJsonSchemaTest.java
index f2c2227..486d22d 100644
---
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogJsonSchemaTest.java
+++
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogJsonSchemaTest.java
@@ -16,14 +16,20 @@
*/
package org.apache.camel.catalog;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
+import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
public class CamelCatalogJsonSchemaTest {
@@ -46,6 +52,38 @@ public class CamelCatalogJsonSchemaTest {
assertTrue(name, tree.has("component"));
assertTrue(name, tree.has("componentProperties"));
assertTrue(name, tree.has("properties"));
+
+ validateComponentSyntax(name, tree);
+ }
+ }
+
+ private void validateComponentSyntax(String name, JsonNode tree) {
+ String syntax = tree.get("component").get("syntax").textValue();
+ assertFalse("Empty syntax for component " + name, syntax.isEmpty());
+ List<String> pathProperties = new ArrayList<>();
+ List<String> requiredProperties = new ArrayList<>();
+
+ Iterator<Map.Entry<String, JsonNode>> it =
tree.get("properties").fields();
+ while (it.hasNext()) {
+ Map.Entry<String, JsonNode> property = it.next();
+ if ("path".equals(property.getValue().get("kind").textValue())) {
+ pathProperties.add(property.getKey());
+ if (property.getValue().get("required").booleanValue()) {
+ requiredProperties.add(property.getKey());
+ }
+ }
+ }
+ List<String> syntaxParts = Arrays.asList(syntax.split("[/:#.]"));
+ Assert.assertEquals("Syntax must start with component name", name,
syntaxParts.get(0));
+
+ for (String part : syntaxParts.subList(1, syntaxParts.size())) {
+ if (!part.isEmpty()) {
+ Assert.assertTrue(String.format("Component %s. Syntax %s. Part
%s is not defined as UriPath", name, syntax, part),
pathProperties.contains(part));
+ }
+ }
+
+ for (String requiredPart : requiredProperties) {
+ Assert.assertTrue(String.format("Component %s. Syntax %s. Required
param %s is not defined in syntax", name, syntax, requiredPart),
syntaxParts.contains(requiredPart));
}
}
diff --git
a/components/camel-chatscript/src/main/docs/chatscript-component.adoc
b/components/camel-chatscript/src/main/docs/chatscript-component.adoc
index af674d6..204b470 100644
--- a/components/camel-chatscript/src/main/docs/chatscript-component.adoc
+++ b/components/camel-chatscript/src/main/docs/chatscript-component.adoc
@@ -54,7 +54,7 @@ The ChatScript component supports 2 options, which are listed
below.
The ChatScript endpoint is configured using URI syntax:
----
-chatscript:host:port/botname
+chatscript:host:port/botName
----
with the following path and query parameters:
diff --git
a/components/camel-chatscript/src/main/java/org/apache/camel/component/chatscript/ChatScriptEndpoint.java
b/components/camel-chatscript/src/main/java/org/apache/camel/component/chatscript/ChatScriptEndpoint.java
index 199d81a..5dfcbca 100644
---
a/components/camel-chatscript/src/main/java/org/apache/camel/component/chatscript/ChatScriptEndpoint.java
+++
b/components/camel-chatscript/src/main/java/org/apache/camel/component/chatscript/ChatScriptEndpoint.java
@@ -36,7 +36,7 @@ import static
org.apache.camel.component.chatscript.utils.ChatScriptConstants.DE
/**
* Represents a ChatScript endpoint.
*/
-@UriEndpoint(firstVersion = "3.0.0", scheme = "chatscript", title =
"ChatScript", syntax = "chatscript:host:port/botname", producerOnly = true,
label = "ai,chatscript")
+@UriEndpoint(firstVersion = "3.0.0", scheme = "chatscript", title =
"ChatScript", syntax = "chatscript:host:port/botName", producerOnly = true,
label = "ai,chatscript")
public class ChatScriptEndpoint extends DefaultEndpoint {
@UriPath (description = "Hostname or IP of the server on which CS server
is running")
@Metadata(required = true)
diff --git
a/components/camel-google-bigquery/src/main/docs/google-bigquery-component.adoc
b/components/camel-google-bigquery/src/main/docs/google-bigquery-component.adoc
index a84a5aa..b29243c 100644
---
a/components/camel-google-bigquery/src/main/docs/google-bigquery-component.adoc
+++
b/components/camel-google-bigquery/src/main/docs/google-bigquery-component.adoc
@@ -76,7 +76,7 @@ The Google BigQuery component supports 5 options, which are
listed below.
The Google BigQuery endpoint is configured using URI syntax:
----
-google-bigquery:projectId:datasetId:tableName
+google-bigquery:projectId:datasetId:tableId
----
with the following path and query parameters:
diff --git
a/components/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc
b/components/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc
index f2afc85..a8d4b0f 100644
---
a/components/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc
+++
b/components/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc
@@ -92,7 +92,7 @@ The Google BigQuery Standard SQL component supports 4
options, which are listed
The Google BigQuery Standard SQL endpoint is configured using URI syntax:
----
-google-bigquery-sql:query
+google-bigquery-sql:projectId:query
----
with the following path and query parameters:
@@ -103,8 +103,8 @@ with the following path and query parameters:
[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
-| *projectId* | *Required* Google Cloud Project Id | | String
| *query* | *Required* BigQuery standard SQL query | | String
+| *projectId* | *Required* Google Cloud Project Id | | String
|===
diff --git
a/components/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpoint.java
b/components/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpoint.java
index dd95bcc..33edeb7 100644
---
a/components/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpoint.java
+++
b/components/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpoint.java
@@ -40,7 +40,7 @@ import org.apache.camel.support.DefaultEndpoint;
* Another consideration is that exceptions are not handled within the class.
They are expected to bubble up and be handled
* by Camel.
*/
-@UriEndpoint(firstVersion = "2.20.0", scheme = "google-bigquery", title =
"Google BigQuery", syntax = "google-bigquery:projectId:datasetId:tableName",
+@UriEndpoint(firstVersion = "2.20.0", scheme = "google-bigquery", title =
"Google BigQuery", syntax = "google-bigquery:projectId:datasetId:tableId",
label = "cloud,messaging", producerOnly = true)
public class GoogleBigQueryEndpoint extends DefaultEndpoint {
diff --git
a/components/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpoint.java
b/components/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpoint.java
index e899b4c..d68763f 100644
---
a/components/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpoint.java
+++
b/components/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpoint.java
@@ -41,7 +41,7 @@ import org.apache.camel.support.DefaultEndpoint;
* Another consideration is that exceptions are not handled within the class.
They are expected to bubble up and be handled
* by Camel.
*/
-@UriEndpoint(firstVersion = "2.23.0", scheme = "google-bigquery-sql", title =
"Google BigQuery Standard SQL", syntax = "google-bigquery-sql:query", label =
"cloud,messaging", producerOnly = true)
+@UriEndpoint(firstVersion = "2.23.0", scheme = "google-bigquery-sql", title =
"Google BigQuery Standard SQL", syntax = "google-bigquery-sql:projectId:query",
label = "cloud,messaging", producerOnly = true)
public class GoogleBigQuerySQLEndpoint extends DefaultEndpoint {
@UriParam
diff --git a/components/camel-ipfs/src/main/docs/ipfs-component.adoc
b/components/camel-ipfs/src/main/docs/ipfs-component.adoc
index 7c429a8..268b087 100644
--- a/components/camel-ipfs/src/main/docs/ipfs-component.adoc
+++ b/components/camel-ipfs/src/main/docs/ipfs-component.adoc
@@ -44,17 +44,19 @@ The IPFS component supports 2 options, which are listed
below.
The IPFS endpoint is configured using URI syntax:
----
-ipfs:host:port/cmd
+ipfs:ipfsHost:ipfsPort/ipfsCmd
----
with the following path and query parameters:
-==== Path Parameters (1 parameters):
+==== Path Parameters (3 parameters):
[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
+| *ipfsHost* | The ipfs host | | String
+| *ipfsPort* | The ipfs port | | int
| *ipfsCmd* | The ipfs command | | String
|===
diff --git
a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSConfiguration.java
b/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSConfiguration.java
index 2d0bc34..9e078ae 100644
---
a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSConfiguration.java
+++
b/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSConfiguration.java
@@ -32,14 +32,15 @@ public class IPFSConfiguration {
public enum IPFSCommand {
add, cat, get, version
}
-
- @UriPath(description = "The ipfs command")
- private String ipfsCmd;
- @UriParam(description = "The ipfs output directory")
- private Path outdir;
+ @UriPath(description = "The ipfs host")
private String ipfsHost = "127.0.0.1";
+ @UriPath(description = "The ipfs port")
private int ipfsPort = 5001;
+ @UriPath(description = "The ipfs command", enums = "add,cat,get,version")
+ private String ipfsCmd;
+ @UriParam(description = "The ipfs output directory")
+ private Path outdir;
public IPFSConfiguration(IPFSComponent component) {
ObjectHelper.notNull(component, "component");
diff --git
a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSEndpoint.java
b/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSEndpoint.java
index 68d3a84..1be9dec 100644
---
a/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSEndpoint.java
+++
b/components/camel-ipfs/src/main/java/org/apache/camel/component/ipfs/IPFSEndpoint.java
@@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory;
* The camel-ipfs component provides access to the Interplanetary File System
* (IPFS).
*/
-@UriEndpoint(firstVersion = "2.23.0", scheme = "ipfs", title = "IPFS", syntax
= "ipfs:host:port/cmd", producerOnly = true, label = "file,ipfs")
+@UriEndpoint(firstVersion = "2.23.0", scheme = "ipfs", title = "IPFS", syntax
= "ipfs:ipfsHost:ipfsPort/ipfsCmd", producerOnly = true, label = "file,ipfs")
public class IPFSEndpoint extends DefaultEndpoint {
public static final long DEFAULT_TIMEOUT = 10000L;
diff --git
a/components/camel-pg-replication-slot/src/main/docs/pg-replication-slot-component.adoc
b/components/camel-pg-replication-slot/src/main/docs/pg-replication-slot-component.adoc
index 7cab4eb..7163adf 100644
---
a/components/camel-pg-replication-slot/src/main/docs/pg-replication-slot-component.adoc
+++
b/components/camel-pg-replication-slot/src/main/docs/pg-replication-slot-component.adoc
@@ -54,7 +54,7 @@ The PostgresSQL Replication Slot component supports 2
options, which are listed
The PostgresSQL Replication Slot endpoint is configured using URI syntax:
----
-pg-replication-slot:host:port/database/slot:plugin
+pg-replication-slot:host:port/database/slot:outputPlugin
----
with the following path and query parameters:
diff --git
a/components/camel-pg-replication-slot/src/main/java/org/apache/camel/component/pg/replication/slot/PgReplicationSlotEndpoint.java
b/components/camel-pg-replication-slot/src/main/java/org/apache/camel/component/pg/replication/slot/PgReplicationSlotEndpoint.java
index 7679c3a..6617d77 100644
---
a/components/camel-pg-replication-slot/src/main/java/org/apache/camel/component/pg/replication/slot/PgReplicationSlotEndpoint.java
+++
b/components/camel-pg-replication-slot/src/main/java/org/apache/camel/component/pg/replication/slot/PgReplicationSlotEndpoint.java
@@ -40,7 +40,7 @@ import org.postgresql.PGProperty;
* Consumer endpoint to receive from PostgreSQL Replication Slot.
*/
@UriEndpoint(firstVersion = "3.0.0", scheme = "pg-replication-slot", title =
"PostgresSQL Replication Slot",
- syntax = "pg-replication-slot:host:port/database/slot:plugin", label =
"database,sql", consumerOnly = true)
+ syntax = "pg-replication-slot:host:port/database/slot:outputPlugin",
label = "database,sql", consumerOnly = true)
public class PgReplicationSlotEndpoint extends ScheduledPollEndpoint {
private static final Pattern URI_PATTERN = Pattern.compile(
diff --git a/components/camel-soroush/src/main/docs/soroush-component.adoc
b/components/camel-soroush/src/main/docs/soroush-component.adoc
index a443565..5c1c8b5 100644
--- a/components/camel-soroush/src/main/docs/soroush-component.adoc
+++ b/components/camel-soroush/src/main/docs/soroush-component.adoc
@@ -67,7 +67,7 @@ The Soroush component supports 3 options, which are listed
below.
The Soroush endpoint is configured using URI syntax:
----
-soroush:action/authorizationToken
+soroush:action
----
with the following path and query parameters:
diff --git
a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotEndpoint.java
b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotEndpoint.java
index 14e6d07..af66c4f 100644
---
a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotEndpoint.java
+++
b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotEndpoint.java
@@ -55,7 +55,7 @@ import org.slf4j.LoggerFactory;
/**
* To integrate with the Soroush chat bot.
*/
-@UriEndpoint(firstVersion = "3.0", scheme = "soroush", title = "Soroush",
syntax = "soroush:action/authorizationToken", label = "chat")
+@UriEndpoint(firstVersion = "3.0", scheme = "soroush", title = "Soroush",
syntax = "soroush:action", label = "chat")
public class SoroushBotEndpoint extends DefaultEndpoint {
private static final Logger LOG =
LoggerFactory.getLogger(SoroushBotEndpoint.class);
diff --git a/components/camel-wordpress/src/main/docs/wordpress-component.adoc
b/components/camel-wordpress/src/main/docs/wordpress-component.adoc
index 3a5deca..c111ca1 100644
--- a/components/camel-wordpress/src/main/docs/wordpress-component.adoc
+++ b/components/camel-wordpress/src/main/docs/wordpress-component.adoc
@@ -27,7 +27,7 @@ The Wordpress component supports 3 options, which are listed
below.
The Wordpress endpoint is configured using URI syntax:
----
-wordpress:operationDetail
+wordpress:operation
----
with the following path and query parameters:
diff --git
a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
index a37f7c8..526b717 100644
---
a/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
+++
b/components/camel-wordpress/src/main/java/org/apache/camel/component/wordpress/WordpressEndpoint.java
@@ -45,7 +45,7 @@ import org.apache.camel.util.ObjectHelper;
/**
* Integrates Camel with Wordpress.
*/
-@UriEndpoint(firstVersion = "2.21.0", scheme = "wordpress", title =
"Wordpress", syntax = "wordpress:operationDetail", label = "cms")
+@UriEndpoint(firstVersion = "2.21.0", scheme = "wordpress", title =
"Wordpress", syntax = "wordpress:operation", label = "cms")
public class WordpressEndpoint extends DefaultEndpoint {
public static final String ENDPOINT_SERVICE_POST = "post, user";
diff --git a/components/readme.adoc b/components/readme.adoc
index cde2350..205b7b0 100644
--- a/components/readme.adoc
+++ b/components/readme.adoc
@@ -161,7 +161,7 @@ Number of Components: 297 in 234 JAR artifacts (0
deprecated)
`cql:beanRef:hosts:port/keyspace` | 2.15 | The cql component aims at
integrating Cassandra 2.0 using the CQL3 API (not the Thrift API).
| link:camel-chatscript/src/main/docs/chatscript-component.adoc[ChatScript]
(camel-chatscript) +
-`chatscript:host:port/botname` | 3.0 | Represents a ChatScript endpoint.
+`chatscript:host:port/botName` | 3.0 | Represents a ChatScript endpoint.
| link:camel-chunk/src/main/docs/chunk-component.adoc[Chunk] (camel-chunk) +
`chunk:resourceUri` | 2.15 | Transforms the message using a Chunk template.
@@ -299,10 +299,10 @@ Number of Components: 297 in 234 JAR artifacts (0
deprecated)
`github:type/branchName` | 2.15 | The github component is used for integrating
Camel with github.
|
link:camel-google-bigquery/src/main/docs/google-bigquery-component.adoc[Google
BigQuery] (camel-google-bigquery) +
-`google-bigquery:projectId:datasetId:tableName` | 2.20 | Google BigQuery data
warehouse for analytics.
+`google-bigquery:projectId:datasetId:tableId` | 2.20 | Google BigQuery data
warehouse for analytics.
|
link:camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc[Google
BigQuery Standard SQL] (camel-google-bigquery) +
-`google-bigquery-sql:query` | 2.23 | Google BigQuery data warehouse for
analytics (using SQL queries).
+`google-bigquery-sql:projectId:query` | 2.23 | Google BigQuery data warehouse
for analytics (using SQL queries).
|
link:camel-google-calendar/src/main/docs/google-calendar-component.adoc[Google
Calendar] (camel-google-calendar) +
`google-calendar:apiName/methodName` | 2.15 | The google-calendar component
provides access to Google Calendar.
@@ -422,7 +422,7 @@ Number of Components: 297 in 234 JAR artifacts (0
deprecated)
`iota:name` | 2.23 | Component for integrate IOTA DLT
| link:camel-ipfs/src/main/docs/ipfs-component.adoc[IPFS] (camel-ipfs) +
-`ipfs:host:port/cmd` | 2.23 | The camel-ipfs component provides access to the
Interplanetary File System (IPFS).
+`ipfs:ipfsHost:ipfsPort/ipfsCmd` | 2.23 | The camel-ipfs component provides
access to the Interplanetary File System (IPFS).
| link:camel-irc/src/main/docs/irc-component.adoc[IRC] (camel-irc) +
`irc:hostname:port` | 1.1 | The irc component implements an IRC (Internet
Relay Chat) transport.
@@ -668,7 +668,7 @@ Number of Components: 297 in 234 JAR artifacts (0
deprecated)
`pgevent:host:port/database/channel` | 2.15 | The pgevent component allows for
producing/consuming PostgreSQL events related to the listen/notify commands.
|
link:camel-pg-replication-slot/src/main/docs/pg-replication-slot-component.adoc[PostgresSQL
Replication Slot] (camel-pg-replication-slot) +
-`pg-replication-slot:host:port/database/slot:plugin` | 3.0 | Consumer endpoint
to receive from PostgreSQL Replication Slot.
+`pg-replication-slot:host:port/database/slot:outputPlugin` | 3.0 | Consumer
endpoint to receive from PostgreSQL Replication Slot.
| link:camel-printer/src/main/docs/lpr-component.adoc[Printer] (camel-printer)
+
`lpr:hostname:port/printername` | 2.1 | The printer component is used for
sending messages to printers as print jobs.
@@ -767,7 +767,7 @@ Number of Components: 297 in 234 JAR artifacts (0
deprecated)
`solr:url` | 2.9 | The solr component allows you to interface with an Apache
Lucene Solr server.
| link:camel-soroush/src/main/docs/soroush-component.adoc[Soroush]
(camel-soroush) +
-`soroush:action/authorizationToken` | 3.0 | To integrate with the Soroush chat
bot.
+`soroush:action` | 3.0 | To integrate with the Soroush chat bot.
| link:camel-spark-rest/src/main/docs/spark-rest-component.adoc[Spark Rest]
(camel-spark-rest) +
`spark-rest:verb:path` | 2.14 | The spark-rest component is used for hosting
REST services which has been defined using Camel rest-dsl.
@@ -869,7 +869,7 @@ Number of Components: 297 in 234 JAR artifacts (0
deprecated)
`webhook:endpointUri` | 3.0 | The webhook component allows other Camel
components that can receive push notifications to expose webhook endpoints and
automatically register them with their own webhook provider.
| link:camel-wordpress/src/main/docs/wordpress-component.adoc[Wordpress]
(camel-wordpress) +
-`wordpress:operationDetail` | 2.21 | Integrates Camel with Wordpress.
+`wordpress:operation` | 2.21 | Integrates Camel with Wordpress.
| link:camel-xchange/src/main/docs/xchange-component.adoc[XChange]
(camel-xchange) +
`xchange:name` | 2.21 | The camel-xchange component provide access to many
bitcoin and altcoin exchanges for trading and accessing market data.
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/ChatScriptEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/ChatScriptEndpointBuilderFactory.java
index 962cbd4..7e604cf 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/ChatScriptEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/ChatScriptEndpointBuilderFactory.java
@@ -144,7 +144,7 @@ public interface ChatScriptEndpointBuilderFactory {
* Available as of version: 3.0
* Maven coordinates: org.apache.camel:camel-chatscript
*
- * Syntax: <code>chatscript:host:port/botname</code>
+ * Syntax: <code>chatscript:host:port/botName</code>
*
* Path parameter: host (required)
* Hostname or IP of the server on which CS server is running
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQueryEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQueryEndpointBuilderFactory.java
index e96f8c5..d45d3c9 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQueryEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQueryEndpointBuilderFactory.java
@@ -150,7 +150,7 @@ public interface GoogleBigQueryEndpointBuilderFactory {
* Available as of version: 2.20
* Maven coordinates: org.apache.camel:camel-google-bigquery
*
- * Syntax: <code>google-bigquery:projectId:datasetId:tableName</code>
+ * Syntax: <code>google-bigquery:projectId:datasetId:tableId</code>
*
* Path parameter: projectId (required)
* Google Cloud Project Id
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java
index 30ecbe3..e878ea6 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java
@@ -140,13 +140,13 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory {
* Available as of version: 2.23
* Maven coordinates: org.apache.camel:camel-google-bigquery
*
- * Syntax: <code>google-bigquery-sql:query</code>
- *
- * Path parameter: projectId (required)
- * Google Cloud Project Id
+ * Syntax: <code>google-bigquery-sql:projectId:query</code>
*
* Path parameter: query (required)
* BigQuery standard SQL query
+ *
+ * Path parameter: projectId (required)
+ * Google Cloud Project Id
*/
default GoogleBigQuerySQLEndpointBuilder googleBigQuerySQL(String path) {
class GoogleBigQuerySQLEndpointBuilderImpl extends
AbstractEndpointBuilder implements GoogleBigQuerySQLEndpointBuilder,
AdvancedGoogleBigQuerySQLEndpointBuilder {
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/IPFSEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/IPFSEndpointBuilderFactory.java
index e74e95c..520cb62 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/IPFSEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/IPFSEndpointBuilderFactory.java
@@ -133,10 +133,17 @@ public interface IPFSEndpointBuilderFactory {
* Available as of version: 2.23
* Maven coordinates: org.apache.camel:camel-ipfs
*
- * Syntax: <code>ipfs:host:port/cmd</code>
+ * Syntax: <code>ipfs:ipfsHost:ipfsPort/ipfsCmd</code>
+ *
+ * Path parameter: ipfsHost
+ * The ipfs host
+ *
+ * Path parameter: ipfsPort
+ * The ipfs port
*
* Path parameter: ipfsCmd
* The ipfs command
+ * The value can be one of: add, cat, get, version
*/
default IPFSEndpointBuilder iPFS(String path) {
class IPFSEndpointBuilderImpl extends AbstractEndpointBuilder
implements IPFSEndpointBuilder, AdvancedIPFSEndpointBuilder {
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/PgReplicationSlotEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/PgReplicationSlotEndpointBuilderFactory.java
index ed0ca68..c0bfbc9 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/PgReplicationSlotEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/PgReplicationSlotEndpointBuilderFactory.java
@@ -214,7 +214,8 @@ public interface PgReplicationSlotEndpointBuilderFactory {
* Available as of version: 3.0
* Maven coordinates: org.apache.camel:camel-pg-replication-slot
*
- * Syntax: <code>pg-replication-slot:host:port/database/slot:plugin</code>
+ * Syntax:
+ * <code>pg-replication-slot:host:port/database/slot:outputPlugin</code>
*
* Path parameter: slot (required)
* Replication slot name.
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SoroushBotEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SoroushBotEndpointBuilderFactory.java
index 6f2d851..45e2fc0 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SoroushBotEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SoroushBotEndpointBuilderFactory.java
@@ -1256,7 +1256,7 @@ public interface SoroushBotEndpointBuilderFactory {
* Available as of version: 3.0
* Maven coordinates: org.apache.camel:camel-soroush
*
- * Syntax: <code>soroush:action/authorizationToken</code>
+ * Syntax: <code>soroush:action</code>
*
* Path parameter: action (required)
* The action to do.
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WordpressEndpointBuilderFactory.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WordpressEndpointBuilderFactory.java
index bad830e..fd5d8e4 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WordpressEndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WordpressEndpointBuilderFactory.java
@@ -828,7 +828,7 @@ public interface WordpressEndpointBuilderFactory {
* Available as of version: 2.21
* Maven coordinates: org.apache.camel:camel-wordpress
*
- * Syntax: <code>wordpress:operationDetail</code>
+ * Syntax: <code>wordpress:operation</code>
*
* Path parameter: operation (required)
* The endpoint operation.
diff --git a/docs/components/modules/ROOT/pages/chatscript-component.adoc
b/docs/components/modules/ROOT/pages/chatscript-component.adoc
index af674d6..204b470 100644
--- a/docs/components/modules/ROOT/pages/chatscript-component.adoc
+++ b/docs/components/modules/ROOT/pages/chatscript-component.adoc
@@ -54,7 +54,7 @@ The ChatScript component supports 2 options, which are listed
below.
The ChatScript endpoint is configured using URI syntax:
----
-chatscript:host:port/botname
+chatscript:host:port/botName
----
with the following path and query parameters:
diff --git a/docs/components/modules/ROOT/pages/google-bigquery-component.adoc
b/docs/components/modules/ROOT/pages/google-bigquery-component.adoc
index a84a5aa..b29243c 100644
--- a/docs/components/modules/ROOT/pages/google-bigquery-component.adoc
+++ b/docs/components/modules/ROOT/pages/google-bigquery-component.adoc
@@ -76,7 +76,7 @@ The Google BigQuery component supports 5 options, which are
listed below.
The Google BigQuery endpoint is configured using URI syntax:
----
-google-bigquery:projectId:datasetId:tableName
+google-bigquery:projectId:datasetId:tableId
----
with the following path and query parameters:
diff --git
a/docs/components/modules/ROOT/pages/google-bigquery-sql-component.adoc
b/docs/components/modules/ROOT/pages/google-bigquery-sql-component.adoc
index f2afc85..a8d4b0f 100644
--- a/docs/components/modules/ROOT/pages/google-bigquery-sql-component.adoc
+++ b/docs/components/modules/ROOT/pages/google-bigquery-sql-component.adoc
@@ -92,7 +92,7 @@ The Google BigQuery Standard SQL component supports 4
options, which are listed
The Google BigQuery Standard SQL endpoint is configured using URI syntax:
----
-google-bigquery-sql:query
+google-bigquery-sql:projectId:query
----
with the following path and query parameters:
@@ -103,8 +103,8 @@ with the following path and query parameters:
[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
-| *projectId* | *Required* Google Cloud Project Id | | String
| *query* | *Required* BigQuery standard SQL query | | String
+| *projectId* | *Required* Google Cloud Project Id | | String
|===
diff --git a/docs/components/modules/ROOT/pages/ipfs-component.adoc
b/docs/components/modules/ROOT/pages/ipfs-component.adoc
index 7c429a8..268b087 100644
--- a/docs/components/modules/ROOT/pages/ipfs-component.adoc
+++ b/docs/components/modules/ROOT/pages/ipfs-component.adoc
@@ -44,17 +44,19 @@ The IPFS component supports 2 options, which are listed
below.
The IPFS endpoint is configured using URI syntax:
----
-ipfs:host:port/cmd
+ipfs:ipfsHost:ipfsPort/ipfsCmd
----
with the following path and query parameters:
-==== Path Parameters (1 parameters):
+==== Path Parameters (3 parameters):
[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
+| *ipfsHost* | The ipfs host | | String
+| *ipfsPort* | The ipfs port | | int
| *ipfsCmd* | The ipfs command | | String
|===
diff --git
a/docs/components/modules/ROOT/pages/pg-replication-slot-component.adoc
b/docs/components/modules/ROOT/pages/pg-replication-slot-component.adoc
index 7cab4eb..7163adf 100644
--- a/docs/components/modules/ROOT/pages/pg-replication-slot-component.adoc
+++ b/docs/components/modules/ROOT/pages/pg-replication-slot-component.adoc
@@ -54,7 +54,7 @@ The PostgresSQL Replication Slot component supports 2
options, which are listed
The PostgresSQL Replication Slot endpoint is configured using URI syntax:
----
-pg-replication-slot:host:port/database/slot:plugin
+pg-replication-slot:host:port/database/slot:outputPlugin
----
with the following path and query parameters:
diff --git a/docs/components/modules/ROOT/pages/soroush-component.adoc
b/docs/components/modules/ROOT/pages/soroush-component.adoc
index a443565..5c1c8b5 100644
--- a/docs/components/modules/ROOT/pages/soroush-component.adoc
+++ b/docs/components/modules/ROOT/pages/soroush-component.adoc
@@ -67,7 +67,7 @@ The Soroush component supports 3 options, which are listed
below.
The Soroush endpoint is configured using URI syntax:
----
-soroush:action/authorizationToken
+soroush:action
----
with the following path and query parameters:
diff --git a/docs/components/modules/ROOT/pages/wordpress-component.adoc
b/docs/components/modules/ROOT/pages/wordpress-component.adoc
index 3a5deca..c111ca1 100644
--- a/docs/components/modules/ROOT/pages/wordpress-component.adoc
+++ b/docs/components/modules/ROOT/pages/wordpress-component.adoc
@@ -27,7 +27,7 @@ The Wordpress component supports 3 options, which are listed
below.
The Wordpress endpoint is configured using URI syntax:
----
-wordpress:operationDetail
+wordpress:operation
----
with the following path and query parameters: