Rest_Controller extends Base_Server implements Registerable, 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
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

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>
Return values
array<string|int, Route>

Search results