\Barn2\WRO_Lib\RestBase_Server

Abstract REST server.

Summary

Methods
Properties
Constants
register()
register_routes()
get_endpoints()
get_namespace()
get_routes()
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

register()

register() 

register_routes()

register_routes() 

get_endpoints()

get_endpoints() : array<mixed,string>

Get the list of route endpoints.

Returns

array<mixed,string> —

The list of endpoints.

get_namespace()

get_namespace() : string

Get the namespace for the REST routes that this server registers.

Returns

string —

The namespace.

get_routes()

get_routes() : array<mixed,\Barn2\WRO_Lib\Rest\Route>

Get the list of routes managed by this REST server.

Returns

array<mixed,\Barn2\WRO_Lib\Rest\Route> —

The list of routes.