Build Status Total Downloads Latest Stable Version License

Test Backend Surplus

A test project for the Backend Surplus.

Authors

Features

  • CRUD Categories
  • CRUD Product
  • CRUD Images

Installation

  1. Clone the repository.
  git clone https://github.com/misbahansori/test-backend-surplus.git
  1. Change directory to the repository.
cd test-backend-surplus
  1. Create database : test_backend_surplus
CREATE DATABASE test_backend_surplus
  1. Copy the environtment variables.
cp .env.example .env
  1. Install composer.
composer install
  1. Generate application key.
php artisan key:generate
  1. Run the migrations and seeder.
php artisan migrate --seed

Testing

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

Feedback

If you have any feedback, please reach out to us at misbah.ansori24@gmail.com