Deps:
apt-get install npm python-virtualenv python-pip libmysqlclient-dev
npm install -g coffee-script less bower
Setup:
virtualenv env
. env/bin/activate
pip install -r requirements.txt
./manage.py syncdb
./manage.py migrate
Running:
. env/bin/activate
make run
Parameters are passed in a JSON body
api/auth/login
- args:id, password
api/auth/logout
- logs outapi/info
- returns definitions, current user, etcapi/currency
- returns currency definitionsapi/notifications
- returns list of notificationsapi/notification/mark-read
- marks notification as read, args:notificationId
api/erip/tree
- fetches and returns ERIP tree from serverapi/erip/pay
- performs a payment, args:accountId, paymentId, fields (object), amount
api/pay
- performs a payment, args:accountId, recipientAccountId, amount
api/payment/report
- returns report, args:accountId, dateFrom(opt), dateTo(opt), type(opt)=(erip|direct)
api/change-password
- changes the password, args:client_id_to_change, old_password, new_password
api/autopayment/:accountId/:id
- autopayment resource endpoint. Fields:startDate, period (week|??), data[recipientBank], data[payerName],data[code]=e, data[recipientAccountId], data[recipientName], data[amount], data[paymentId], data[paymentFields], type (direct|erip)
Report URL
/report/<account-id>/<type>/<from>/<to>/<format>
- type: erip/payment, from & to - timestamps, format: html/csv/pdf
Localization: from django_language
cookie value (en/ru/be)
Parameters are passed via POST
bank-api/notify
- posts a notification, args:clientId, content