-
This REST API was created by me for an ECommerce Project. This API handles all of the basic CRUD functions of Ecommerce Application platform, including validation at each stage.
-
During Revision Unit at Masai School, I have worked on this project.
- Core Java
- Spring Framework
- Spring Boot
- Spring Data JPA
- Hibernate
- MySQL
- PostMan
- Swagger
- Lombok
- Login, Register
- See cart details and total price in it
- Add to cart
- Make a purchase, and track status
- Search functionality
- Search by category
- See individual product page
- Payment
- Add Product List
- Add new products
- Manage Quantities
- Order management
- See orders, details of orders
- Search by user details ( phone, email, name, id )
- Search by order
- User management
- See users, and details
- admin and users ( different login )
- Role of the entire application's administrator.
- Only logged-in admin with active session tokens can add, update, or delete customers, products and orders from the main database.
- The admin has access to information on various customers, products and orders, etc.
- On the platform, a customer can register and update their details.
- Customer can add the product to the cart.
- After adding the product to a cart, he can by a product.
- The customer has the option to remove the product from the cart.
- You need update the database configuration in the application.properties file before launching the API server.
- Change the port number, username, and password to match your local database configuration.
server.port=8880
spring.datasource.url=jdbc:mysql://localhost:3306/shop2home;
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=dbusername
spring.datasource.password=dbpassword
http://localhost:8880/swagger-ui/
POST //api/userlogin
: Customer can login with mobile number and password provided at the time of registation
POST localhost:8080/admin/login
- Request Body
{
"adminId": 1,
"password": "rishabh123"
}
- Response
CurrentAdminSession(userId=2, uuid=WcEy8Z, localDateTime=2022-11-30T16:01:29.137960400)