BloodAndThunder with Restify
Installation
BloodAndThunder requires Node.js to run.
Step one
Install the dependencies
$ git clone https://github.com/Bolvar/BloodAndThunderAPI.git <projectName> $ cd <projectName> $ npm install
Step two
create ./config.js
var mysql = require('mysql'); module.exports = { name: 'rest-api', hostname: 'hostname', version: '0.0.1', env: process.env.NODE_ENV || 'development', port: 3000, oauth: { _accessToken: "", get accessToken() { return this._accessToken; }, set accessToken(value) { this._accessToken = value; }, public: "Client ID", secret: "Client Secret", }, db: { get: mysql.createConnection({ host: 'localhost', user: 'root', password: 'password', database: 'database' }) } }
Step three
...run
Command Palette
List of Characters
$ curl --request GET --url http://api.flako.xyz/guild
Class Statistics
$ curl --request GET --url http://api.flako.xyz/guild/class
Character Detail
$ curl --request GET --url http://api.flako.xyz/character/:name
Character Progress
$ curl --request GET --url http://api.flako.xyz/character/:name/history
Token Status
$ curl --request GET --url http://api.flako.xyz/token
TODO
-A lot of Things...this is just de begining