2.0.1 • Published 8 years ago

angular-rest-adapter v2.0.1

Weekly downloads
36
License
MIT
Repository
github
Last release
8 years ago

angular-rest-adapter

$http adapter for easier connection to REST APIs

Build Status Coverage Status Dependency Status npm version

Intro

This module wraps angular's native $http, adding convenience methods for REST API requests

Installation

Install through bower:

    npm install angular-rest-adapter --save

Usage

  • Require the ngRestAdapter module in your angular application
    
    import "angular-rest-adapter";
    
    angular.module('app', ['ngRestAdapter']);
    
  • (Optionally) configure the service provider
    
    import {NgRestAdapterServiceProvider} from "angular-rest-adapter";
    
    angular.module('app', ['ngRestAdapter'])
    .config(['ngRestAdapterProvider', function(ngRestAdapterProvider:NgRestAdapterServiceProvider){
        ngRestAdapterProvider
            .configure({
                baseUrl: 'http://api.example.com/path/to/api/root'
            })
        ;
    }]);
    
  • ???
  • Profit!
2.0.1

8 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.8

9 years ago

1.0.6

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago