woocommerce/plugins/woocommerce-blocks/docs/third-party-developers/extensibility/rest-api
Mike Jolley a932ceb59f
Fix extensionCartUpdates not surfacing errors to cart and checkout (#49762)
* Add context to type

* Clean up notifyerrors helpers

* Notify and clear top level cart errors

* changelog

* Make extensionCartUpdate surface the errors

* No automatic clearing of notice

* Handle generic errors only, add docs

* Rename param

* Fix linting in readme

* Update toc

* test coverage

* Unused import

* We're only dealing with arrays of errors so simplify logic
2024-08-14 15:24:44 +01:00
..
README.md Add readme file to extend-rest-api directory and move internal doc into internal folder (https://github.com/woocommerce/woocommerce-blocks/pull/10926) 2023-09-14 05:47:35 -07:00
available-endpoints-to-extend.md Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
extend-rest-api-add-custom-fields.md Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
extend-rest-api-add-data.md Fix typo in the Exposing your data in the Store API documentation (#43488) 2024-05-13 15:20:07 +07:00
extend-rest-api-formatters.md Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
extend-rest-api-update-cart.md Fix extensionCartUpdates not surfacing errors to cart and checkout (#49762) 2024-08-14 15:24:44 +01:00

README.md

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.