@ihadeed/rest-client
TypeScript icon, indicating that this package has built-in type declarations

600.0.0 • 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.

Package Sidebar

Install

npm i @ihadeed/rest-client

Weekly Downloads

2

Version

600.0.0

License

MIT

Unpacked Size

26.7 kB

Total Files

14

Last publish

Collaborators

  • ihadeed