Rest_Server
A REST server is the main entry point for a REST system. Registers the routes etc.
Tags
Table of Contents
- get_endpoints() : array<string|int, string>
- Get the list of route endpoints.
- get_namespace() : string
- Get the namespace for the REST routes that this server registers.
- get_routes() : array<string|int, Route>
- Get the list of routes managed by this REST server.
Methods
get_endpoints()
Get the list of route endpoints.
public
get_endpoints() : array<string|int, string>
Return values
array<string|int, string> —The list of endpoints.
get_namespace()
Get the namespace for the REST routes that this server registers.
public
get_namespace() : string
Return values
string —The namespace.
get_routes()
Get the list of routes managed by this REST server.
public
get_routes() : array<string|int, Route>
Return values
array<string|int, Route> —The list of routes.