Rest_Controller extends Base_Server implements Registerable, Standard_Service, Rest_Server
Main controller which registers the REST routes for the plugin.
Tags
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
NAMESPACE
public
mixed
NAMESPACE
= 'wc-product-options/v1'
Tags
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>