Base_Server implements Registerable, Rest_Server

Abstract REST server.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

version
1.0

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()  : mixed
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()

public register() : mixed
Return values
mixed

register_routes()

public register_routes() : mixed
Return values
mixed

Search results