Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
document add rest schema (#6960)
Browse files Browse the repository at this point in the history
  • Loading branch information
senadir authored Aug 22, 2022
1 parent d8eba08 commit 71ce884
Showing 1 changed file with 25 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,34 @@

## Table of Contents <!-- omit in toc -->

- [`wc/store/cart`](#wcstorecart)
- [Passed Parameters:](#passed-parameters)
- [Key:](#key)
- [`wc/store/cart/items`](#wcstorecartitems)
- [Passed Parameters:](#passed-parameters-1)
- [Key:](#key-1)
- [`wc/store/products`](#wcstoreproducts)
- [Passed Parameters:](#passed-parameters-2)
- [Key:](#key-2)
- [`wc/store/checkout`](#wcstorecheckout)
- [Passed Parameters](#passed-parameters)
- [Key](#key)
- [`wc/store/cart`](#wcstorecart)
- [Passed Parameters](#passed-parameters-1)
- [Key](#key-1)
- [`wc/store/cart/items`](#wcstorecartitems)
- [Passed Parameters](#passed-parameters-2)
- [Key](#key-2)
- [`wc/store/products`](#wcstoreproducts)
- [Passed Parameters](#passed-parameters-3)
- [Key](#key-3)

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/checkout`

The cartcheckout 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

- `CheckoutSchema::IDENTIFIER`

## `wc/store/cart`

The main cart endpoint is extensible via ExtendSchema. The data is available via the `extensions` key in the response.
Expand Down

0 comments on commit 71ce884

Please sign in to comment.