Skip to content

YW-Ma/onlineShop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Online Shop Website

You can register/login and add product in cart. In cart, you can check out.

System Design

Database Design

API

Product

URL Request method JSP Method to handle purpose
/getAllProducts GET navbar.jsp getAllProducts() Get all products from DB
/getAllProducts GET productList.jsp getProductById() Get specific product from DB based on primary key
/admin/product/addProduct GET navbar.jsp getProductForm() Get a form to let admin add a product to system
/admin/product/addProduct POST addProduct.jsp addProduct() Save a product to DB
/admin/delete/{productId} DELETE productList.jsp deleteProduct() Delete a product
/admin/product/editProduct/{productId} GET productList.jsp getEditForm() Get a form to let admin update an existing product
/admin/product/editProduct/{productId} POST editProduct.jsp editProduct() Save updated product to DB

CartItem

URL Request method JSP Method to handle purpose
/cart/getCartById GET navbar.jsp getCartId() Get the cart related to the logged in user
/cart/add/{productId} PUT productList.jspaddToCart() addCartItem() Add a product to cart
/cart/removeCartItem/{cartItemId} DELETE Cart.jspremoveFromCart() removeCartItem() Remove an existing cartItem from cart
/cart/removeAllItems/{cartId} DELETE Cart.jspclearCart() removeAllCartItems() Clean all items inside cart

Order

URL Request method JSP Method to handle purpose
/order/{cartId} GET cart.jsp createOrder() Trigger a checkout flow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published