- List store inventory
- User Login
- User cart - accessible only after user login
- get cart for specific user
-
/api/login
Request BodyPOST { "username": "pulkit", "password": "pulkit" }
-
/api/register
Request BodyPOST { "username": "pulkit", "password": "pulkit" }
-
/api/addInventory
Request BodyPOST { "name": "name 2" , "description": "description 2", "price": 1255, "make": 2001 }
-
/api/getInventory
Request Body
POST
{}
-
/api/getCart
Request BodyPOST {}
send the auth token in headers, token will be provided in response header of login
auth-token:TOKEN
-
/api/cartOperations
Request BodyPOST { "operation": "SUB", "productId": "5ee60151ea97389152022f24" }
productid - get it from the getInvnetory result send the auth token in headers, token will be provided in response header of login
auth-token:TOKEN
-
/api/cartOpearations
Request BodyPOST { "operation": "ADD", "productId": "5ee60151ea97389152022f24" }
productid - get it from the getInvnetory result send the auth token in headers, token will be provided in response header of login
auth-token:TOKEN