Your task is to build a mini-aspire API:
It is an app that allows authenticated users to go through a loan application. It doesn’t have to contain too many fields, but at least “amount required” and “loan term.” All the loans will be assumed to have a “weekly” repayment frequency.
After the loan is approved, the user must be able to submit the weekly loan repayments. It can be a simplified repay functionality, which won’t need to check if the dates are correct but will just set the weekly amount to be repaid.
- PHP >= 7.3
- BCMath PHP Extension
- Ctype PHP Extension
- Fileinfo PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
Clone project using below repository
$ git clone [email protected]:vhkhb/miniapire.git
Copy .env.example to .evn file
cp .env.example .env
Set below variable to .env file
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
TOKEN_NAME="PRIVATE KEY IF YOU WANT TO CHANGE"
NOTE: Make sure you already created Database in MySQL
Goto the project root folder and run composer install using below command
$ composer install
To run below command for migration and seeder.
$ php artisan migrate:fresh --seed
Regenerate key for the application
$ php artisan key:generate
Email: [email protected]
If you want to run the test cases, please run the blow command
$ php artisan test
NOTE: We need to store 3 variables in post like below either Globally or Locally.
HOST_NAME - (Set here your localhost url)
AUTH_TOKEN - (Once you logged in then you will get token pleae set that token here.)
LOAN_ID - (Once you request for new loan you will get loan id set that loan id here.)
NOTE: Please set Authorization Type "Bearer Token" for the APIs of "New Loan Request", "Loan Repayment", "Loan Status Change"
NOTE: I shared with you json file of Postman Collection with name of "postman_collection.json"



