This is a Spring Boot-based e-commerce project that provides a RESTful API for managing products.
- CRUD operations for products
- Product search functionality
- Image upload and retrieval for products
- Java
- Spring Boot
- Spring Data JPA
- RESTful API
- PostgreSQL
The project follows a typical Spring Boot application structure:
controller
: Contains theProductController
which handles HTTP requestsservice
: Contains theProductService
which implements business logicrepo
: Contains theProductRepo
interface for database operationsmodel
: Contains theProduct
entity class
GET /api/
: Welcome messageGET /api/products
: Retrieve all productsGET /api/product/{prodId}
: Retrieve a specific product by IDPOST /api/product
: Add a new product along wth full detailsGET /api/product/{productId}/image
: Retrieve the image for a specific productPUT /api/product/{productId}
: Update an existing productDELETE /api/product/{productId}
: Delete a productGET /api/products/search
: Search for products based on a keyword