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 }