- List: [GET] /api/product/
- Show: [GET] /api/product/{productId}
- Create: [POST] /api/product/{productId}
- Update: [PUT] /api/product/{productId}
- Delete: [DELETE] /api/product/{productId}
- page (page number for pagination, applied to List only)
- locale (product details locate, applied to List and Show only)
- product_name' => ['string', 'max:255'],
- product_desc' => ['string'],
- product_category' => ['string', 'max:20'],
- product_price' => ['numeric', 'min:0', 'max:99999999']
P.S. It would not update locale record
- Lumen 8.x (https://lumen.laravel.com/docs/8.x)
- Apache
- PHP 8.x
- MySQL 8.x
- Install Docker (https://www.docker.com/get-started)
In the root of the repo directory run the following command
docker-compose up -d
Run the following command to configure the project after the docker containers up and running
docker exec -it web bash
cp .env.example .env
php artisan migrate:fresh --seed
docker-compose down
Data will need to re-seed after containers are destroy