ExtendRestApi
Service class to provide utility functions to extend REST API.
Description Description
Source Source
File: packages/woocommerce-blocks/src/Domain/Services/ExtendRestApi.php
Methods Methods
- __construct — Constructor
- format_extensions_properties — Format schema for an extension.
- get_endpoint_data — Returns the registered endpoint data
- get_endpoint_schema — Returns the registered endpoint schema
- get_formatter — Returns a formatter instance.
- get_payment_requirements — Returns the additional payment requirements.
- register_endpoint_data — An endpoint that validates registration method call
- register_payment_requirements — Registers and validates payment requirements callbacks.
- throw_exception — Throws error and/or silently logs it.