This is a Laravel API application called gardener for eden junior backend developer recruitment test. Built with Laravel 9
To view the full documentation Click here
https://gardenerapi.herokuapp.com/
- PHP >= 7.4
- composer
- Postman
- git
- mysql or postgres
- Register a customers
- Register a gardener
- Get all the customers
- Get all customers by their location
- Get all the available locations
- Get all the Gardeners
- Get all gardeners by their country
- Unit Tests for Customer and Gardener
- An error log handler
- Caching for for all the GET request
- database seeder for customers, gardeners and location
To install this laravel application on your PC run the following command on your terminal or CMD
git clone git@github.com:OfficialOzioma/gardener-app.git
cd gardener-app
composer install
- copy the .env.example file and rename it to .env
- add your database details on the .env file
php artisan migrate
php artisan db:seed
php artisan passport:install
php artisan serve
php artisan test
For a complete documentation of this API visit the documentation page. Click here
Details | Method | API End points |
---|---|---|
Register a customer | POST | api/v1/customer/register |
Register a gardener | POST | api/v1/customer/register |
Get All Customers | GET | api/v1/customers |
Find Customers by their Locations | GET | api/v1/customers/{location} |
Get all Locations | GET | api/v1/locations |
Get all Gardeners | GET | api/v1/gardeners |
Find Gardeners by their country | GET | api/V1/gardeners/{country} |
MIT