0.1.34 • Published 3 years ago
enco-poodle-crud-interface v0.1.34
enco-poodle-crud-interface
A CRUD API Consuming Interface
POODLE CRUD INTERFACE
Part of the ENCO project
Poodle is a standard interface library to consume the results from CRUD APIs
Installation
npm install enco-poodle-crud-interface
Usage
Example 1
var poodle = require('enco-poodle-crud-interface');
var mode = {
urlbase : "yourdomain.com",
urlpath : "/apipath/api.php/",
apitype : "phpcrud",
search_phrase : "test",
context : null
};
await poodle.getItems(mode);
mode will now contain an 'items' property
Example 2
var poodle = require('enco-poodle-crud-interface');
var mode = {
urlbase : "yourdomain.com",
urlpath : "/apipath/api.php/",
apitype : "phpcrud",
search_phrase : "test",
context : null
};
poodle.getItems(mode).then(function(response) {
console.log("MODE:",mode);
}, function(err) {
});
Tests
npm test
Contributing
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
0.1.34
3 years ago
0.1.33
4 years ago
0.1.30
4 years ago
0.1.31
4 years ago
0.1.32
4 years ago
0.1.29
4 years ago
0.1.28
4 years ago
0.1.27
4 years ago
0.1.26
4 years ago
0.1.25
4 years ago
0.1.24
4 years ago
0.1.23
4 years ago
0.1.21
4 years ago
0.1.22
4 years ago
0.1.20
4 years ago
0.1.19
4 years ago
0.1.18
4 years ago
0.1.16
4 years ago
0.1.15
4 years ago
0.1.14
4 years ago
0.1.13
4 years ago
0.1.12
4 years ago
0.1.11
4 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago