Smalldb-REST
v0.2
|
The REST API application. More...
Static Public Member Functions | |
static | loadConfig ($base_dir) |
Load configuration from three files (defaults, app, local) and merge it. | |
static | createSmalldb ($config) |
Create and initialize Smalldb, including Flupdo and Auth objects. More... | |
static | createRouter ($config, $handler) |
Create API handler. | |
static | createHandler ($config, $smalldb) |
Create handler, which processes all API requests from router. | |
static | main ($base_dir) |
The main() | |
The REST API application.
Simply call Application::main(__DIR__)
and it should work.
|
static |
Create and initialize Smalldb, including Flupdo and Auth objects.