1.0.10 • Published 9 years ago

epochtalk-http-api v1.0.10

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

Epochtalk HTTP API Circle CI

Epochtalk Hapi 8.x based API

Usage

The HTTP API module is meant to be used as a plugin for Hapi under the Epochtalk system. Check out epochtalk on Github. Note: Requires Hapi 8.x

// as a plugin, use server.register

var server = new Hapi.Server();
// config with db example:
var config = {};
config.db = {
  "driver": "pg",
  "user": "jianshi",
  "password": "",
  "host": "localhost",
  "database": "epochtalk_dev"
};
var opts = {config: config}; // where db is the database config
server.register({register: require('epochtalk-http-api'), options: opts}, function(err) {
});

API Documentation

In development version, please go to http://localhost:8080/docs.

License

ISC Copyright (c) 2015, Slickage Studios LLC