POST /loans
- Create a new loanGET /loans/{id}
- Get loan information by IDPUT /loans/{id}
- Update loan information by IDDELETE /loans/{id}
- Delete a loan by IDGET /loans
- Get a list of all loans with basic filters by creation date and amount
-
Clone the repository
git clone <repository-url>
-
Navigate to the project directory
cd lumen-api
-
Start the Docker containers
docker-compose up -d
-
Run the composer install
docker-compose run composer install
-
Run the migrations
docker-compose run artisan migrate
-
Run the tests
docker-compose exec php ./vendor/bin/phpunit tests/LoanTest.php