Skip to main content

Products

Product pages to view all products, specific products or checkout the existing cart.

  • Get specific product by ID -> 127.0.0.1:5000/product/id/<id>
  • Get all products -> 127.0.0.1:5000/products
  • Add item to cart -> 127.0.0.1:5000/add
  • Empty cart -> 127.0.0.1:5000/empty
  • Delete item from cart -> 127.0.0.1:5000/delete/<string:code>
  • Checkout cart -> 127.0.0.1:5000/checkout
  • View all orders made -> 127.0.0.1:5000/vieworder

Get specific product by ID

Retrieve function is implemented at main.py:

Get specific product!

Get all products

Retrieve function is implemented at main.py:

Get all product!

Add item to cart

Add function is implemented at main.py:

Add item to cart!

Empty cart

Empty cart function is implemented at main.py:

Buttons!

Delete item from cart

Delete function is implemented at main.py:

Buttons!

Checkout cart

Checkout cart function is implemented at main.py:

Checkout!

View all orders made

View all function is implemented at main.py:

View all!