\Barn2\WRO_Lib\RestRest_Server

A REST server is the main entry point for a REST system. Registers the routes etc.

Summary

Methods
Constants
get_namespace()
get_routes()
get_endpoints()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

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.

get_endpoints()

get_endpoints() : array<mixed,string>

Get the list of route endpoints.

Returns

array<mixed,string> —

The list of endpoints.