Rest_Server

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

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

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.

Search results