Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

CureApp/loopback-promised

Repository files navigation

loopback-promised

loopback-promised is an HTTP client for StrongLoop Loopback using Promise.

Universal JS

This project is universal (in past, called "isomorphic"). Bundle into your project and it runs.

latest API documentation Page

Installation

$ npm install loopback-promised

Usage

var LoopbackPromised = require('loopback-promised')

var lbPromised = LoopbackPromised.createInstance({
  baseURL: 'http://localhost:3000'
});

var client = lbPromised.createClient('notebooks')

client.create({name: 'Biology'}).then(function(notebook) {
  console.log(notebook.id)
  console.log(notebook.name)
})

License

MIT