[ 
https://issues.apache.org/jira/browse/CAMEL-12183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16337054#comment-16337054
 ] 

ASF GitHub Bot commented on CAMEL-12183:
----------------------------------------

oscerd commented on a change in pull request #2190: CAMEL-12183: add support 
for Wordpress REST API
URL: https://github.com/apache/camel/pull/2190#discussion_r163468370
 
 

 ##########
 File path: components/camel-wordpress/src/main/docs/wordpress-component.adoc
 ##########
 @@ -0,0 +1,79 @@
+== Wordpress Component
+
+*Available as of Camel version 2.20.1*
+
+Camel component for 
https://developer.wordpress.org/rest-api/reference/[Wordpress API].
+
+=== Usage
+
+Currently only the **Posts** and **Users** operations are supported.
+
+==== Configure your route
+
+The `WordpressConfiguration` class can be used to set initial properties 
configuration to the component instead of passing it as query parameter. The 
following listing shows how to set the component to be used in your routes.
+
+[source,java]
+--------------------------------------------------
+public void configure() {
+    final WordpressConfiguration configuration = new WordpressConfiguration();
+    final WordpressComponent component = new WordpressComponent();
+    configuration.setApiVersion("2");
+    configuration.setUrl("http://yoursite.com/wp-json/";);
+    component.setConfiguration(configuration);
+    getContext().addComponent("wordpress", component);
+    
+    from("wordpress:post?id=1")
+      .to("mock:result");
+}
+--------------------------------------------------
+==== Path Parameters
 
 Review comment:
   Like the other components you need to add the placeholders for component 
options and endpoint options
   
   // component options: START
   // component options: END
   
   // endpoint options: START
   //endpoint options: END
   
   The docs will be generated automatically

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Add support for Wordpress REST API
> ----------------------------------
>
>                 Key: CAMEL-12183
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12183
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Ricardo Zanini
>            Priority: Major
>              Labels: camel-wordpress, rest
>
> Wordpress is on 29% of the web, meaning that there are a lot of people over 
> there looking for integration with their systems. I can think of use cases 
> like users synchronization with other data sources, automatic post, 
> migrations, reports creations and so on. Although where it could be really 
> shine is on e-commerce web sites built on top of Wordpress. Camel could 
> integrate the e-commerce platform with a CRM or an ERP, for example. Anyway, 
> I think this component may see many uses.
> [I'm already on it|https://github.com/m88i/camel-wordpress] and should send a 
> PR in a couple hours.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to