Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

@feathersjs/rest-client

1.4.7 • Public • Published

@feathersjs/rest-client

Build Status Dependency Status Download Status

REST client services for different Ajax libraries

@feathersjs/rest-client supports REST server connectivity using jQuery, request, Superagent, Axios, Fetch or Angular HTTP as the AJAX library.

Installation

npm install @feathersjs/rest-client --save

Quick example

const feathers = require('@feathersjs/feathers');
const rest = require('@feathersjs/rest-client');
 
const app = feathers();
 
// Connect to the same as the browser URL (only in the browser)
const restClient = rest();
 
// Connect to a different URL
const restClient = rest('http://feathers-api.com')
 
// Configure an AJAX library (see below) with that client 
app.configure(restClient.fetch(window.fetch));
 
// Connect to the `http://feathers-api.com/messages` service
const messages = app.service('messages');

Documentation

Please refer to the @feathersjs/rest-client documentation for more details.

License

Copyright (c) 2018

Licensed under the MIT license.

install

npm i @feathersjs/rest-client

Downloadsweekly downloads

8,860

version

1.4.7

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability