aparector

0.0.2 • Public • Published

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
}

Readme

Keywords

Package Sidebar

Install

npm i aparector

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

67.8 kB

Total Files

52

Last publish

Collaborators

  • oleksandrknyga