docvy-server
The Docvy Server
table of contents:
installation:
Using npm:
⇒ npm install docvy-server
usage:
This component may be used programmatically, as in the docvy application, or from the terminal as a stand-alone application.
terminal usage:
Help information for terminal usage:
⇒ docvy-server docvy-server: The Docvy Server H, help show this help information V, version show version information s, start start server t, status show status of server x, stop stop server See https://github.com/docvy/app
Starting application:
⇒ docvy-server start --port=9432 --attach
Enabling debug output:
⇒ docvy-server start --debug
programmatic usage:
var server = ;
server.start([options [, callback]])
options
(Object):port
(Number): port to start server on
callback
(Function):- On success, called with no arguments passed
- On failure, called with an error object passed
server.stop([callback])
callback
(Function): called once the server has stopped receiving new connections. Note that the existing connections will be serviced till completion.
API:
URL endpoints to use after starting server:
- browsing directories
- reading files
- serving plugin content
- listing installed plugins
- installing new plugins
- uninstalling plugins
- graceful shutdown
Browsing directories:
GET /files/
See query parameters.
Reading files:
GET /file/
See query parameters.
Also:
expects
(Array[String]): array of content-type to return the data in
Success Response [Schema Reference]:
Serving Plugin Content:
GET /plugins/www/:pluginName
Path Parameters:
pluginName
: name of plugin
This serves the files packaged in the plugin from the root directory (of the plugin).
Listing installed plugins:
GET /plugins/list/
Success Response [Schema Reference]:
Installing new plugins:
POST /plugins/install/:pluginName
Path Parameters:
pluginName
: name of plugin
Success Response [Schema Reference]:
Uninstalling plugins:
DELETE /plugins/uninstall/:pluginName
Path Parameters:
pluginName
: name of plugin
Success Response [Schema Reference]:
Graceful Shutdown of Server:
DELETE /stop/
Success Response [Schema Reference]:
license:
The MIT License (MIT)
Copyright (c) 2015 Forfuture LLC we@forfuture.co.ke
Copyright (c) 2015 GochoMugo mugo@forfuture.co.ke