\Barn2\WRO_Lib\RestRoute

Represents a REST route accessible via the REST API.

Summary

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

Methods

register()

register() 

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.