API Mock test by Coding Ninjas
//request product: { name: laptop, quantity: 10 } //response data: { product: { name: laptop, quantity: 10 } }
data: { products: [ { id: 1, name: laptop quantity: 10 }, { id: 2, name: camera quantity: 5 }, { id: 3, name: smartwatch quantity: 8 }, ] }
// response data: { message: “product deleted” }
// response data: { product: { id: 1, name: laptop, quantity: 20 }, message: updated successfully }