- Overview
- [Prerequisites] (#prerequisites)
- Setup Instructions
- API Endpoints
- Contributors
Little Shop BE is an API application that manages an e-commerce platform.n It provides endpoits to interact with merchants, items, customers, and transactions. The API uses various CRUD operations and custom search endpoints to facilitate communication with a front-end client.
The project follows RESTful API principles, with non-RESTful search functionality for specific merchant and item queries.
Make sure you have the following installed:
- Ruby 3.2.2
- Rails 7.1.2
- PostgreSQL
- Clone the repository:
git clone <repository_url> cd little_shop bundle install rails db:{drop,create,migrate,seed} rails db:schema:dump
This section should include details about the main endpoints. You can give a short overview or link to your detailed API documentation. Example format:
-
Merchants
- GET /api/v1/merchants - Returns a list of all merchants.
- GET /api/v1/merchants/:id
-
Items
- GET /api/v1/items - Returns a list of all items.
- POST /api/v1/items - Creates a new item.
- PATCH /api/v1/merchants/:id - Updates item
- DELETE /api/v1/merchants/:id - Deletes item
-
Search Functionality
- GET /api/v1/merchants/find - Search for a merchant by name using query parameters.
- GET /api/v1/items/find_all - Search for items based on price or name criteria.