/product/
Description:
The /product/{id}
endpoint allows deleting a specific product identified by its unique ID.
Method:
DELETE
Path Parameter:
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the product. |
curl --request DELETE \
--url https://server26-dot-royalti-project.uc.r.appspot.com/product/{id} \
--header 'Authorization: Bearer <token>'
{
"message": "Product was deleted successfully."
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Product ID
Success
The response is of type object
.
curl --request DELETE \
--url https://server26-dot-royalti-project.uc.r.appspot.com/product/{id} \
--header 'Authorization: Bearer <token>'
{
"message": "Product was deleted successfully."
}