Laravel Project for customer depositing and withdrawing money
git clone https://github.com/karadzinov/task.git
composer install
php artisan migrate
Get all costumers
Method: GET http://task.mikrobee.com/api/customer
Method: POST http://task.mikrobee.com/api/customer
{
"firstname": "Martin",
"lastname": "Karadzinov",
"gender": "male",
"email": "martin@task.mk",
"country": "mk"
}
Method: GET http://task.mikrobee.com/api/customer/{id}
Method: DELETE http://task.mikrobee.com/api/customer/{id}
Method: PUT/PATCH http://task.mikrobee.com/api/customer/{id}
{
"country": "mk"
}
Method: POST http://task.mikrobee.com/api/customer/3/deposit
{
"type": 0,
"balance": 380,
"currency": "EUR"
}
Method: POST http://task.mikrobee.com/api/customer/3/withdraw
{
"type": 1,
"balance": 2010,
"currency": "EUR"
}