Product Update - MarcoLagalla/marette_backend GitHub Wiki
Name | Update Product |
---|---|
Description | allows updating profile information |
URL | restaurant/<int:id> /products/<int:p_id> /update |
Allowed methods | POST |
Authorizations | IsAuthenticated, IsBusiness, IsOwner |
Parameter | Type | Description |
---|---|---|
<int:id> |
integer | Restaurant ID |
<int:p_id> |
integer | product ID |
Performs an update of the updatable fields for the business's profile.
Accepts the same fields as for Add Product.
Authorization token is needed
Status | Description |
---|---|
HTTP_200_OK |
deleted |
HTTP_400_BAD_REQUEST |
wrong parameters |
HTTP_404_NOT_FOUND |
product or restaurant not found |
HTTP_401_UNAUTHORIZED |
action unauthorized |