Closed Justin-Acosta closed 3 months ago
profile.py in views: 'POST' to profile/cart no longer decrements product.quantity
Request
POST /profile/cart adds product to cart
/profile/cart
{ "product_id": <product_id> }
Response
HTTP/1.1 201 OK
{ "id": 34, "product": { "id": 40, "name": "Golf", "price": 653.59, "number_sold": 0, "description": "1994 Volkswagen", "quantity": 2, "created_date": "2019-07-10", "location": "Berlin", "image_path": "http://localhost:8000/media/products/vehicle.png", "average_rating": null, "store_id": 1 } }
Changes
profile.py in views: 'POST' to profile/cart no longer decrements product.quantity
Requests / Responses
Request
POST
/profile/cart
adds product to cartResponse
HTTP/1.1 201 OK
Related Issues