Public API to report payrolls and allow to modify IRPF of them.
- Node.js and npm installed
- MongoDB instance running in
localhost:27017
git clone https://github.com/jfrac/payroll-api.git
cd payroll-api
npm install
npm start
In order to load one month into database, just run
node load-month-payslips 12 2018
npm t
curl -X GET \
'http://localhost:3000/payrolls?month=12&year=2018' \
-H 'cache-control: no-cache'
curl -X PUT \
'http://localhost:3000/payrolls?month=12&year=2018' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"irpf": 5
}
'