Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 884 Bytes

available-endpoints-to-extend.md

File metadata and controls

31 lines (17 loc) · 884 Bytes

Available endpoints to extend with ExtendRestAPI

To see how to add your data to Store API using ExtendRestAPI, check this document.

This is a list of available endpoints that you can extend. If you want to add a new endpoint, check this document.

wc/store/cart

The main cart endpoint is extensible via ExtendRestAPI. The data is available via the extensions key in the response.

Passed Parameters:

  • data_callback: none.
  • schema_callback: none.

Key:

  • CartSchema::IDENTIFIER

wc/store/cart/items

The items endpoint, which is also available on wc/store/cart inside the items key. The data would be available inside each item of the items array.

Passed Parameters:

  • data_callback: $cart_item.
  • schema_callback none.

Key:

  • CartItemSchema::IDENTIFIER