jEngine: $http

Bower version npm version

Installation

npm install jstools-http --save

or

bower install jstools-http --save

Usage

$http.get('/items.json');

$http.post('/items.json', {
    prop1: 'value1'
});

$http.put('/items.json', {
    prop1: 'another value'
});

$http.delete('/items.json');

$http.patch('/items.json', {
    op: 'add', path: '/prop1', value: 'one more value'
});

$http.patch('/items.json')
    .remove('/prop1')
    .add('/list/-', { subprop: 'sample value' })
    .submit();