Automattic\WooCommerce\Internal

RestApiControllerBase::get_base_schemaprotectedWC 1.0

Get the base schema for the REST API endpoints.

Method of the class: RestApiControllerBase{}

No Hooks.

Returns

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_base_schema(): array;

RestApiControllerBase::get_base_schema() code WC 10.7.0

protected function get_base_schema(): array {
	return array(
		'$schema' => 'http://json-schema.org/draft-04/schema#',
		'title'   => 'order receipts',
		'type'    => 'object',
	);
}