- Using Abstarct Factory Pattern.
- Using Repository Pattern.
- Unit tests coverage.
- Handle all Acceptance Criteria.
- easy to install in a Docker container.
composer install
php artisan k:g
php artisan config:cache
php artisan serve
Task is very easy to install and deploy in a Docker container.
By default, the Docker will expose port 8080, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile to build the image.
docker-compose up
Verify the server running by navigating to your server address in your preferred browser.
localhost:8080
You Can look at Endpoint using Postman here Postman Api
http://localhost:8080/api/v1/users
http://localhost:8080/api/v1/users?provider=DataProviderX
http://localhost:8080/api/v1/users?statusCode=refunded
http://localhost:8080/api/v1/users?balanceMin=120
http://localhost:8080/api/v1/users?balanceMax=320
http://localhost:8080/api/v1/users?balanceMin=120&balanceMax=320
http://localhost:8080/api/v1/users?currency=AED
http://localhost:8080/api/v1/users?page=2
http://localhost:8080/api/v1/users?provider=DataProviderX&statusCode=refunded&balanceMin=120&balanceMax=320¤cy=AED&page=2
php artisan test
MIT