berkeleybop/bbop-rest-manager

Name: bbop-rest-manager

Owner: Berkeley BOP

Description: The is the "new" version of the manager event model for BBOP systems.

Created: 2015-07-28 20:25:50.0

Updated: 2017-09-14 10:12:59.0

Pushed: 2017-09-14 03:12:15.0

Homepage: null

Size: 122

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

bbop-rest-manager

Overview

The purpose of the bbop-rest-manager is simple: to create an easy-to-use JavaScript abstraction for getting external data, usually from REST resource, that allows code reuse across client, server, and different response systems (promises, function callbacks, jQuery AJAX, or asynchronous or synchronous Node.js server).

All it needs to function is a RESTful resource to contact and a compliant response class (see superclass bbop-rest-response. With this and a single change in a single line in your code, you can run it on the server in Node, on a web client, or as a script.

(With a small amount of work, we could make this autodetect as well so no changes would be needed; we could also port this to Rhino or PurpleJS.)

For solid examples of what this does, please see the unit tests, starting with core.tests.js.

This is the “new” base (superclass) version of the manager for BBOP systems.

Availability

GitHub

NPM

API

index


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.