Route extends Registerable
Represents a REST route accessible via the REST API.
Tags
Table of Contents
- get_base() : string
- Get the REST route base which is appended to the namespace (e.g. mybase).
- get_endpoint() : string
- Get the full endpoint including namespace (e.g. myplugin/v1/mybase).
- register() : mixed
Methods
get_base()
Get the REST route base which is appended to the namespace (e.g. mybase).
public
get_base() : string
Return values
string —The REST base.
get_endpoint()
Get the full endpoint including namespace (e.g. myplugin/v1/mybase).
public
get_endpoint() : string
Return values
string —The full REST route.
register()
public
register() : mixed