Skip to content

henkel-v/lumen-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loan Management API

This is a REST API for managing loans built with Lumen.

Endpoints

  • POST /loans - Create a new loan
  • GET /loans/{id} - Get loan information by ID
  • PUT /loans/{id} - Update loan information by ID
  • DELETE /loans/{id} - Delete a loan by ID
  • GET /loans - Get a list of all loans with basic filters by creation date and amount

Setup

  1. Clone the repository

    git clone <repository-url>
  2. Navigate to the project directory

    cd lumen-api
  3. Start the Docker containers

    docker-compose up -d
  4. Run the composer install

    docker-compose run composer install
  5. Run the migrations

    docker-compose run artisan migrate
  6. Run the tests

    docker-compose exec php ./vendor/bin/phpunit tests/LoanTest.php

About

REST API for loan management

Resources

Stars

Watchers

Forks