manifest / integrations / restful-p2p
Restful P2P
Connect 2 objects (via Posts 2 Posts) with the Rest API
by Mike Hemberger · github.com/jivedig/restful-p2p · website
★ 17stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jivedig/restful-p2p/archive/refs/heads/master.zipDeclares an update source (TBD), so updates arrive through the plugin's own updater.
From the readme
Restful P2P
Connect 2 objects (via Posts 2 Posts) with the Rest API (AJAX)
This plugin requires Posts 2 Posts and WP-API (v2) plugins for WordPress
Basic Usage
Instructions
1. Install and activate required Posts 2 Posts plugin and WordPress REST API (Version 2)
1. Install and activate Restful P2P plugin
1. Register your Posts 2 Posts connection(s) via its API
Example:
1. Use the helper function to add a Restful P2P 'connection button' anywhere you'd like
Example:
1. As of now, clicking a button creates a connection, then clicking again deletes (disconnects) the connection. In the future I may add the ability to disable 'disconnecting' connections, I'm just not sure how many use cases there are for that sort of thing.