A test project for the Backend Surplus.
- CRUD Categories
- CRUD Product
- CRUD Images
- Clone the repository.
git clone https://github.com/misbahansori/test-backend-surplus.git
- Change directory to the repository.
cd test-backend-surplus
- Create database :
test_backend_surplus
CREATE DATABASE test_backend_surplus
- Copy the environtment variables.
cp .env.example .env
- Install composer.
composer install
- Generate application key.
php artisan key:generate
- Run the migrations and seeder.
php artisan migrate --seed
available endpoints :
Method | URI | Description |
---|---|---|
Generate | api/categories | Category index |
POST | api/categories | Category store |
DELETE | api/categories/{id} | Category destroy |
PUT|PATCH | api/categories/{id} | Category update |
Generate | api/categories/{id} | Category show |
POST | api/images | Image store |
Generate | api/images | Image index |
DELETE | api/images/{id} | Image destroy |
PUT|PATCH | api/images/{id} | Image update |
Generate | api/images/{id} | Image show |
Generate | api/products | Product index |
POST | api/products | Product store |
PUT|PATCH | api/products/{id} | Product update |
DELETE | api/products/{id} | Product destroy |
Generate | api/products/{id} | Product show |
If you have any feedback, please reach out to us at misbah.ansori24@gmail.com