Product Delete - MarcoLagalla/marette_backend GitHub Wiki
Name | Product Delete |
---|---|
Description | Delete this product from db |
URL | restaurant/<int:id> /products/<int:p_id> /delete |
Allowed methods | POST |
Authorizations | IsAuthenticated, IsBusiness, IsOwner |
Parameter | Type | Description |
---|---|---|
id |
int | valid restaurant id |
p_id |
int | valid product id |
Remove the selected product from the database.
Status | Description |
---|---|
HTTP_200_OK |
deleted |
HTTP_404_NOT_FOUND |
product or restaurant not found |
HTTP_401_UNAUTHORIZED |
action not authorized |