woocommerce/plugins/woocommerce-blocks/docs/extensibility/available-endpoints-to-exte...

41 lines
1.3 KiB
Markdown

# Available endpoints to extend with ExtendSchema
To see how to add your data to Store API using ExtendSchema, [check this document](./extend-rest-api-add-data.md).
This is a list of available endpoints that you can extend. If you want to add a new endpoint, [check this document](./extend-rest-api-new-endpoint.md).
## `wc/store/cart`
The main cart endpoint is extensible via ExtendSchema. 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`
<!-- FEEDBACK -->
---
[We're hiring!](https://woocommerce.com/careers/) Come work with us!
🐞 Found a mistake, or have a suggestion? [Leave feedback about this document here.](https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/new?assignees=&labels=type%3A+documentation&template=--doc-feedback.md&title=Feedback%20on%20./docs/extensibility/available-endpoints-to-extend.md)
<!-- /FEEDBACK -->