第340章
340.1.
|
|
| |
|
|
|
|
wordpress:operationDetail
340.1.1.
|
|
| |
|
|
|
340.1.2.
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
|
|
|
|
| |
|
|
| |
|
|
|
|
wordpress:post?criteria.perPage=10&criteria.orderBy=author&criteria.categories=camel,dozer,json
340.1.3.
public void configure() { final WordpressConfiguration configuration = new WordpressConfiguration(); final WordpressComponentConfiguration component = new WordpressComponentConfiguration(); 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"); }
340.1.4.
340.1.5.