Rest_Controller extends Base_Server implements Registerable, Rest_Server
Main controller which registers the REST routes for the plugin.
Tags
Interfaces, Classes and Traits
- Registerable
- Rest_Server
Table of Contents
- NAMESPACE = 'wdm/v1'
- $routes : array<string|int, Route>
- The list of REST route objects handled by this server.
- __construct() : mixed
- Get things started.
- get_namespace() : string
- Retrieve the namespace.
- get_routes() : array<string|int, Route>
- Retrieve the routes.
Constants
NAMESPACE
public
mixed
NAMESPACE
= 'wdm/v1'
Properties
$routes
The list of REST route objects handled by this server.
private
array<string|int, Route>
$routes
= []
Methods
__construct()
Get things started.
public
__construct() : mixed
Return values
mixed —get_namespace()
Retrieve the namespace.
public
get_namespace() : string
Return values
string —get_routes()
Retrieve the routes.
public
get_routes() : array<string|int, Route>