jstools-http

0.0.37 • Public • Published

jEngine: $http

Bower version npm version Installation

npm install jengine-http --save

or

bower install jengine-http --save

Usage

$http.get('/items.json', { prop1: 'value1' });
// GET .../items.json?prop1=value1
 
$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();

Cached URL

var httpItems = $http('items.json');
 
httpItems.get({ prop1: 'value1' });
 
httpItems.post({ prop1: 'value1' });
 
httpItems.put({ prop1: 'another value' });
 
httpItems.delete();
 
httpItems.patch({
    op: 'add', path: '/prop1', value: 'one more value'
});
 
httpItems.patch()
    .remove('/prop1')
    .add('/list/-', { subprop: 'sample value' })
    .submit();

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.370latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.370
0.0.360
0.0.350
0.0.340
0.0.330
0.0.280
0.0.270
0.0.250

Package Sidebar

Install

npm i jstools-http

Weekly Downloads

0

Version

0.0.37

License

ISC

Last publish

Collaborators

  • gsusgz