Directory

wordpress-collect - Vaadin Add-on Directory

Webcomponent for interacting with the Wordpress REST API wordpress-collect - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/rocketsciencesolutions/wordpress-collect](https://github.com/rocketsciencesolutions/wordpress-collect/blob/v0.0.2/README.md) on 2018-01-17 ]** [![Build status](https://travis-ci.org/rocketsciencesolutions/wordpress-collect.svg?branch=master)](https://travis-ci.org/rocketsciencesolutions/wordpress-collect) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/rocketsciencesolutions/wordpress-collect/elements/wordpress-collect) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) # \ The `wordpress-collect` element makes it possible to interact with the native [WP REST API](https://developer.wordpress.org/rest-api/reference/). ## Table of Contents 1 [Install the element in your project](#installation)
2 [Usage](#usage)
2.1 [Attribute: base-url - required](#base-url)
2.2 [Attribute: resource - required](#resource)
2.3 [Attribute: id - optional](#id)
2.4 [Attribute: response - required](#response)
2.5 [Attribute: wp-api-url - optional](#wp-api-url)
## 1 Installation ```bash bower install --save wordpress-posts ``` ## 2 Usage ```html ``` ### 2.1 base-url - required The required `base-url` attribute is the Wordpress url you want to retrieve the data from. ### 2.2 resource - required The required `resource` attribute indicates the kind of resource to retrieve. This can be pages | posts or other resources defined in the [WP REST API reference](https://developer.wordpress.org/rest-api/reference/). ### 2.3 id - optional The optional `id` attribute can be set to request a specific data object, like a page with the id 5. ### 2.4 response - required When data is received the binding in the `response` attribute is updated with the retrieved data and available for use in the component which `wordpress-collect` is situated. ### 2.5 wp-api-url - optional Optionally you can set the `wp-api-url` attribute. When not defined it will always default to `wp-json/wp/v2`, which is the default WP REST API segment. The `wp-api-url` attribute will be appended to the `base-url`.
Online Demo
GitHub Homepage
Documentation
Issue tracker
License

wordpress-collect version 0.0.1
### Dependencies Polymer/polymer#^2.0.0 * iron-ajax#^2.0.5

wordpress-collect version 0.0.2
### Dependencies Polymer/polymer#^2.0.0 * iron-ajax#^2.0.5