AbstractSchema
AbstractSchema class.
Description Description
For REST Route Schemas
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractSchema.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Methods Methods
- __construct — Constructor.
- force_schema_readonly — Force all schema properties to be readonly.
- get_endpoint_args_for_item_schema — Retrieves an array of endpoint arguments from the item schema for the controller.
- get_extended_data — Returns extended data for a specific endpoint.
- get_extended_schema — Returns extended schema for a specific endpoint.
- get_item_responses_from_schema — Apply a schema get_item_response callback to an array of items and return the result.
- get_item_schema — Returns the full item schema.
- get_public_item_schema — Returns the public schema.
- get_store_currency_properties — Returns consistent currency schema used across endpoints for prices.
- prepare_currency_response — Adds currency data to an array of monetary values.
- prepare_html_response — Prepares HTML based content, such as post titles and content, for the API response.
- prepare_money_response — Convert monetary values from WooCommerce to string based integers, using the smallest unit of a currency.