0.1.34 • Published 4 years ago

enco-poodle-crud-interface v0.1.34

Weekly downloads
37
License
MIT
Repository
github
Last release
4 years ago

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

4 years ago

0.1.33

5 years ago

0.1.30

5 years ago

0.1.31

5 years ago

0.1.32

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.27

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.21

5 years ago

0.1.22

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago