{"repo":"spacedmonkey/wp-rest-blocks","free":true,"listed":false,"github":"https://github.com/spacedmonkey/wp-rest-blocks","clone":"git clone https://github.com/spacedmonkey/wp-rest-blocks.git","description":"Add gutenberg blocks data into post / page / widget REST API endpoints.","language":"PHP","stars":123,"topics":["wordpress-plugin","wordpress","rest-api","blocks"],"license":"GPL-3.0","category":"api-integrations-sdks","readme_excerpt":"REST API blocks Contributors: spacedmonkey Donate link: https://github.com/sponsors/spacedmonkey Tags: blocks, gutenberg, api, wp-json, rest-api Requires at least: 5.9 Tested up to: 6.9 Requires PHP: 7.4.0 Stable tag: 2.0.0 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.en.html Add gutenberg blocks data into the post / page REST API endpoints. Description A simple plugin to add block data in json format into the rest api. Once installed, there will be two new fields added to the rest api, has blocks and blocks . For example output. Technical Notes Requires PHP 5.6+. Requires WordPress 5.5+. Issues and Pull requests welcome on the GitHub repository: https://github.com/spacedmonkey/wp-rest-blocks Development This plugin uses @wordpress/env for local development and testing. Prerequisites - Node.js 20+ and npm - Docker Desktop (must be installed and running) Setup 1. Clone the repository 2. Install dependencies: 3. Start the WordPress environment: This will start a local WordPress instance at http://localhost:8888 (admin: http://localhost:8888/wp-admin with username admin and password password ) Note: Docker must be running for this to work. The first time you run this, it will download WordPress and set up the database, which may take a few minutes. Available Commands - npm run env:start - Start the WordPress environment - npm run env:stop - Stop the WordPress environment - npm run env:reset - Reset the environment (clean database) - npm run env:destr","default_branch":null,"files":null,"tree":[],"storefront":"/r/spacedmonkey","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spacedmonkey/wp-rest-blocks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}