0.0.2 • Published 6 years ago

aparector v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Aparector

Current module wraps Apache Fineract in ORM-like style. Authorization implemented via HTTP Basic. Endpoints covered: clients, loans, loanproducts.

How to setup

npm install aparector --save

How to work with

For example if you have need to read first 10 clients from the API you might need to do something similar to:

// Your specific endpoint for api, username and password
import {endpoint, username, password} from '../config';
import AparectorHttpBasic from 'aparector/build/AparectorHttpBasic';
import ClientsCollection from 'aparector/build/models/client/ClientsCollection';
const clients = new ClientsCollection();
const options = {limit: 10};
await clients.read(options);
// to access clients use clients.items
}
0.0.2

6 years ago

0.0.1

6 years ago

1.0.0

6 years ago