public function putProductAction($id, $provider, Request $request)
    {
        return $this->handleWriteProduct($provider, $request, $id);
    }
public function putProductAction($id, $provider, Request $request)
    {
        return $this->handleWriteProduct($provider, $request, $id);
    }
public function putProductAction ( $ id , $ provider , Request $ request ) { return $ this -> handleWriteProduct ( $ provider , $ request , $ id ) ; }
Updates a product.

@Put("/{provider}/products/{id}")

@ApiDoc(
requirements={
{"name"="id", "dataType"="integer", "requirement"="\d+", "description"="product identifier"},
{"name"="provider", "dataType"="string", "requirement"="[A-Za-z0-9.]*", "description"="product provider"}
},
input={"class"="sonata_product_api_form_product", "name"="", "groups"={"sonata_api_write"}},
output={"class"="Sonata\ProductBundle\Entity\BaseProduct", "groups"={"sonata_api_read"}},
statusCodes={
200="Returned when successful",
400="Returned when an error has occurred while product update",
404="Returned when unable to find product"
}
)

@Route(requirements={"provider"="[A-Za-z0-9.]*"})

@param int     $id       A Product identifier
@param string  $provider A product provider name
@param Request $request  A Symfony request

@throws NotFoundHttpException

@return Product
Updates a product .