Smalldb-REST  v0.2
Static Public Member Functions | List of all members
Application Class Reference

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()
 

Detailed Description

The REST API application.

Simply call Application::main(__DIR__) and it should work.

Member Function Documentation

static createSmalldb (   $config)
static

Create and initialize Smalldb, including Flupdo and Auth objects.

Todo: