-
create the product with payload API: POST
/product
BODY: { "name":"Product-2", "description":"This is description-2", "price":100, "quantity":10, "category":"Category-2" } -
get all the product details available API: GET /product/all
-
get product by name API: GET /product/name BODY: { "name":"Product" }
-
Make Transaction with payload API: POST /pay BODY: { "product":"Product-1", "payment_method":"card", "email":"user-2@gmail.com", "price":200 }
-
Get All the Transaction History API: GET /transaction/all
-
Get Transaction history of particular user API: GET /transaction/user BODY: { "email":"user-1@gmail.com" }
-
Create new user API: POST/user BODY: { name: "user-1", email: "user1@gmail.com", }
-
Get User by Email API: GET /user BODY: { "email":"user-1@gmail.com" }