\Barn2\WRO_Lib\RestBase_Route

Abstract class for REST routes.

Summary

Methods
Properties
Constants
__construct()
get_base()
get_endpoint()
register()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  $namespace) 

Parameters

$namespace

get_base()

get_base() : string

Get the REST route base which is appended to the namespace (e.g. mybase).

Returns

string —

The REST base.

get_endpoint()

get_endpoint() : string

Get the full endpoint including namespace (e.g. myplugin/v1/mybase).

Returns

string —

The full REST route.

register()

register()