manifest / integrations / woocommerce-dual-api
WooCommerce Dual API Engine
Dual code-first PHP + GraphQL API engine for WooCommerce extensions
★ 0stars
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/woocommerce/woocommerce-dual-api/archive/refs/heads/trunk.zipDeclares an update source (false), so updates arrive through the plugin's own updater.
From the readme
WooCommerce Dual API
The engine behind the WooCommerce dual API: a code-first API architecture where you write plain PHP classes (the code API) and a build script generates a fully functional GraphQL endpoint that mirrors them. This plugin provides the engine (the build tooling, the attributes, the authorization model, the request pipeline, the caches and their settings); plugins use it to define their own dual APIs.
Experimental. Everything under the Automattic\WooCommerce\Api namespace can change in backwards-incompatible ways, or be removed, in any release. Do not use it in production extensions.
The documentation lives in the GitHub pages site for this repository. Start with Creating a dual API in a plugin, and see woocommerce-simple-events for a complete, runnable example.
Requirements
- WooCommerce 11.2 or newer.
- PHP 8.1 or newer.
Installation
Until a packaged release is available, install from source:
Then activate WooCommerce Dual API in the Plugins screen. Activation is the only switch: there is no feature flag. The plugin registers no GraphQL endpoint of its own; endpoints come from the plugins that define a code API, through Automattic\WooCommerce\Api\Infrastr