Welcome to the eCommerce API. This API provides functionalities for managing users, products, reviews, and authentication. Below are the main features available:
-
Sign Up:
- Description: Create a new account with unique credentials.
-
Log In:
- Description: Securely access your account with your credentials.
-
Log Out:
- Description: End your current session securely.
-
Profile Editing:
- Description: Modify your profile details like name, email, username, password, profile picture, and bio.
-
View User Profile:
- Description: Retrieve user profile information.
-
Delete Account:
- Description: Permanently remove the user account and associated data.
-
Role-based Access Control:
- Description: Restrict access to certain routes based on user roles.
-
View All Products:
- Description: Retrieve a list of all available products.
-
Create Product:
- Description: Add a new product to the database.
-
View Product Details:
- Description: Retrieve detailed information about a specific product.
-
Update Product Details:
- Description: Modify details of an existing product.
-
Delete Product:
- Description: Remove a product from the database permanently.
-
Product Statistics:
- Description: Access statistical data related to products, such as average ratings, total sales, etc.
-
View All Reviews:
- Description: Retrieve a list of all product reviews.
-
View Review Details:
- Description: Retrieve detailed information about a specific review.
-
Create Review:
- Description: Add a new review for a product.
-
Update Review:
- Description: Modify an existing review.
-
Delete Review:
- Description: Remove a review permanently.