WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Data::get_items() public WC 1.0

Return the list of data resources.

{} It's a method of the class: Data{}

No Hooks.

Return

WP_Error|WP_REST_Response. Nothing.

Usage

$Data = new Data();
$Data->get_items( $request );
$request(WP_REST_Request) (required)
Request data.

Code of Data::get_items() WC 5.3.0

<?php
public function get_items( $request ) {
	$response         = parent::get_items( $request );
	$response->data[] = $this->prepare_response_for_collection(
		$this->prepare_item_for_response(
			(object) array(
				'slug'        => 'download-ips',
				'description' => __( 'An endpoint used for searching download logs for a specific IP address.', 'woocommerce' ),
			),
			$request
		)
	);
	return $response;
}