marello icon indicating copy to clipboard operation
marello copied to clipboard

Allow update customer from REST

Open clicktrend opened this issue 7 years ago • 0 comments

Hi,

just allow updating Customer data with REST API

add following lines to Marello/Bundle/OrderBundle/Controller/Api/Rest/CustomerController.php

    /**
     * REST PUT
     *
     * @param int $id Customer id
     *
     * @ApiDoc(
     *     description="Update Customer via Rest api",
     *     resource=true
     * )
     * @return Response
     */
    public function putAction($id)
    {
        return $this->handleUpdateRequest($id);
    }

clicktrend avatar Sep 26 '18 11:09 clicktrend