Name |
ProductDiscount Delete |
Description |
Display product information |
URL |
webapp/restaurant/<int:id> /products/discounts/<int:d_id> /delete |
Allowed methods |
POST |
Authorizations |
IsAuthenticated, IsBusiness, IsOwner |
Parameter |
Type |
Description |
id |
int |
valid restaurant id |
d_id |
int |
valid discount id |
Remove the selected ProductDiscount from the database.
(Checks if the user that make the request is the owner and is authorized)
Status |
Description |
HTTP_200_OK |
deleted |
HTTP_404_NOT_FOUND |
product or restaurant not found |
HTTP_401_UNAUTHORIZED |
action not authorized |