This is a simple RESTful API for a Grocery Store built using Laravel. The API allows users to perform basic CRUD (Create, Read, Update, Delete) operations on grocery products.
- Retrieve a list of all grocery products
- Retrieve details of a specific product
- Add a new product to the store
- Update an existing product
- Delete a product from the store
- PHP 7.4 or higher
- Composer
- Laravel 8.x
You can interact with the API using tools like Postman or any other API testing tool. Here are the available endpoints:
GET /api/products
: Retrieve all productsGET /api/products/{id}
: Retrieve a specific productPOST /api/products
: Add a new productPUT /api/products/{id}
: Update an existing productDELETE /api/products/{id}
: Delete a product
Make sure to replace {id}
with the corresponding product ID.
This project is licensed under the MIT License - see the LICENSE file for details.
You can use this template as your project's README file, providing users with the necessary information to understand, install, and use your Grocery Store API. Adjust the instructions and details according to your project's specific requirements and implementation.