177.-Picus-Security-Go-Bootcamp-Bitirme-Projesi

{
"email": "xxx@hotmail.cpö",
"password":"xxxdxxxxx"
}


{
"ID": 1, // product id
"Amount":5
}




{
"product_name" : "addibffds",
"price" :10,
"stock": 30,
"category_name" : "giysi",
"sku" : "32422374"
}






id
stock
price
name
sku
http://localhost:8090/product/update?sku=2&id=4&price=15


  • Lists products in cart
    User can list all products in cart
    http://localhost:8090/cart/list


  • Updates product in cart
    User can update amount of product in cart by product id
    http://localhost:8090/cart/update
{
"ID": 2, // product id
"Amount":3
}


  • Searches products
    It searches by product name, and sku and returns all products that match the search
    http://localhost:8090/product/search http://localhost:8090/product/search?search=324&pageSize=3&page=2


  • Lists user's all orders
    http://localhost:8090/order/list




  • Creates order
    It creates order and updates user's cart
    http://localhost:8090/order/create