WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

NoteActions::register_routes() public WC 1.0

Register the routes for admin notes.

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

No Hooks.

Return

null. Nothing.

Usage

$NoteActions = new NoteActions();
$NoteActions->register_routes();

Code of NoteActions::register_routes() WC 5.2.2

<?php
public function register_routes() {
	register_rest_route(
		$this->namespace,
		'/' . $this->rest_base . '/(?P<note_id>[\d-]+)/action/(?P<action_id>[\d-]+)',
		array(
			'args'   => array(
				'note_id'   => array(
					'description' => __( 'Unique ID for the Note.', 'woocommerce' ),
					'type'        => 'integer',
				),
				'action_id' => array(
					'description' => __( 'Unique ID for the Note Action.', 'woocommerce' ),
					'type'        => 'integer',
				),
			),
			array(
				'methods'             => \WP_REST_Server::EDITABLE,
				'callback'            => array( $this, 'trigger_note_action' ),
				// @todo - double check these permissions for taking note actions.
				'permission_callback' => array( $this, 'get_item_permissions_check' ),
			),
			'schema' => array( $this, 'get_public_item_schema' ),
		)
	);
}