woocommerce/plugins/woocommerce-blocks/docs/third-party-developers/extensibility/rest-api/README.md

1.5 KiB

Extending the Store API

Your application can change the way the Store API works by extending certain endpoints. It can add data to certain endpoints to make your server-side data available to the client-side.

You can also use the Store API trigger a server-side cart update from the client which will then update the client-side cart with the data returned by the API.

The documents listed below contain further details on how to achieve the above.

Document Description
Exposing your data in the Store API Explains how you can add additional data to Store API endpoints.
Available endpoints to extend with ExtendSchema A list of all available endpoints to extend.
Available Formatters Available Formatters to format data for use in the Store API.
Updating the cart with the Store API Update the server-side cart following an action from the front-end.