I assume that you have following knowledge to follow this tutorial
First you can create the model with the resource controller
Now you can migrate the database file
Now you can create the API Resouce for the Product
php artisan make:resource ProductResource
This will create the ProductResource.php
file at App\Http\Resources\Product