Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.17 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.17 KB

Product Review

API to add new product
/api/add/product/
http://arpt123.pythonanywhere.com/api/add/product/

API to list all product
/api/list/products/
http://arpt123.pythonanywhere.com/api/list/products/

API to delete a product
/api/delete/product/(?P<id>\d+)/
http://arpt123.pythonanywhere.com/api/delete/product/1/

API to buy product
/api/buy/
http://arpt123.pythonanywhere.com/api/buy/

API to view purchases of logged in user
/api/user/purchases/
http://arpt123.pythonanywhere.com/api/user/purchases/

API to give rating
/api/rate/product/
http://arpt123.pythonanywhere.com/api/rate/product/

Data Format to send for rating { "product":1, "rate":4 }