Base_Server implements Registerable, Rest_Server
Abstract REST server.
Tags
Interfaces, Classes and Traits
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
- Rest_Server
- A REST server is the main entry point for a REST system. Registers the routes etc.
Table of Contents
- get_endpoints() : array<string|int, string>
- Get the list of route endpoints.
- get_namespace() : string
- Get the namespace for the REST routes that this server registers.
- get_routes() : array<string|int, Route>
- Get the list of routes managed by this REST server.
- register() : void
- Register this object with WordPress.
- register_routes() : mixed
Methods
get_endpoints()
Get the list of route endpoints.
public
get_endpoints() : array<string|int, string>
Return values
array<string|int, string> —The list of endpoints.
get_namespace()
Get the namespace for the REST routes that this server registers.
public
get_namespace() : string
Return values
string —The namespace.
get_routes()
Get the list of routes managed by this REST server.
public
get_routes() : array<string|int, Route>
Return values
array<string|int, Route> —The list of routes.
register()
Register this object with WordPress.
public
register() : void
Return values
void —register_routes()
public
register_routes() : mixed