Rest_Controller extends Base_Server implements Registerable, Standard_Service, Rest_Server

Main controller which registers the REST routes for the plugin.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service
Rest_Server

Table of Contents

NAMESPACE  = 'wc-product-options/v1'
$routes  : array<string|int, Route>
The list of REST route objects handled by this server.
__construct()  : mixed
Constructor.
get_namespace()  : string
Retrieve the namespace.
get_routes()  : array<string|int, Route>
Retrieve the routes.

Constants

Properties

$routes

The list of REST route objects handled by this server.

private array<string|int, Route> $routes = []
Tags

Methods

__construct()

Constructor.

public __construct() : mixed
Tags
Return values
mixed

get_namespace()

Retrieve the namespace.

public get_namespace() : string
Tags
Return values
string

get_routes()

Retrieve the routes.

public get_routes() : array<string|int, Route>
Tags
Return values
array<string|int, Route>

Search results