
04/03/2016
Any platform
API server
Bear in mind that one must be authenticated to access API routes except for sign in feature

04/03/2016
There is 4 layers of privileges:
GUEST, routes available are correlated with sign in feature.
USER, most common privilege any logged user has this one (shop keeper and admin routes not available)
PREMIUM, shop keeper privilege must pay for it. It includes routes which are related to shop keeper features such as company details editing, listing receipts by user and advanced statistics.
ADMIN, server and dev privilege can access any route.

04/03/2016
Authenticate through "https://ip:port/auth/local" with credential data as follow:
{
"email": "blibli44@yopmail.com",
"password": "44"
}

04/03/2016
Then you'll receive a token that you'll use for any further request in your header as follow:
{
"Authorization": "Bearer token"
}

04/03/2016
Your token will be of this form: "eyJ0eXAiOiJKV1Q" but longer so your header data will look like this:
{
"Authorization": "Bearer eyJ0eXAiOiJKV1Q"
}
Server usage
By mb1475963
Server usage
- 446