RESTSERVER


about


author:Bart Thate <bthate@gmail.com>
contact:IRCNET/#dunkbots
distribution:core
license:MIT

description


implements a REST server, soon to be adapted for use with the jsb-tornado program.

commands


commands in this plugin:
 restserver-cfg .. restserver-cfgsave .. rest-start .. rest-stop

  1. rest-start .. [handle_rest_start]

    description:no arguments - start the rest server.
    permissions:OPER
    code:rest-start command.
    examples:
    <user> ;rest-start
    <output> done - rest-start
  2. rest-stop .. [handle_rest_stop]

    description:no arguments - stop the rest server.
    permissions:OPER
    code:rest-stop command.
    examples:
    <user> ;rest-stop
    <output> done - rest-stop
  3. restserver-cfg .. [cmnd_cfg]

    description:the config (cfg) command.
    permissions:OPER
    code:jsb.plugs.socket.restserver_restserver-cfg_command.
    examples:
    <user> ;restserver-cfg
    <output> options: cfile="/home/bart/.jsb/config/plugs/jsb.plugs.socket.restserver" .. datadir="/home/bart/.jsb" .. dir="/home/bart/.jsb/config" .. disable=[] .. enable=0 .. filename="plugs/jsb.plugs.socket.restserver" .. hide=[] .. host="127.0.1.1" .. isdb=False .. isgae=False .. issaved=True .. jsondb=None .. modname="jsb.plugs.socket.restserver" .. name="new" .. origdir="/home/bart/.jsb" - 1 more
  4. restserver-cfgsave .. [cmnd_cfgsave]

    description:save config.
    permissions:OPER
    code:jsb.plugs.socket.restserver_restserver-cfgsave_command.
    examples:
    <user> ;restserver-cfgsave
    <output> config saved

Table Of Contents

Previous topic

OPS

Next topic

UDP

This Page