Skip to content

karadzinov/task

Repository files navigation

REST API

Laravel Project for customer depositing and withdrawing money

Installation

git clone https://github.com/karadzinov/task.git
composer install
php artisan migrate

Customer routes:


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" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published