My endpoint only accept only 1 object
Axios.post('www.url.com', {
giftAGift: false,
productId: "1030567",
quantity: 1,
storeId: 0,
variantId: ""
})
What I have is an array of object
let object = [{"giftAGift": false, "productId": "1234", "quantity": 1, "storeId": 0, "variantId": ""}
{"giftAGift": false, "productId": "12345", "quantity": 1, "storeId": 0, "variantId": ""}
{"giftAGift": false, "productId": "123456", "quantity": 1, "storeId": 0, "variantId": ""}
{"giftAGift": false, "productId": "`123456", "quantity": 1, "storeId": 0, "variantId": ""}]
What is the best way to make a post request when I want to send all data when I press only 1 time.