Commit 768e93f4 authored by wilhelmhb's avatar wilhelmhb

débugage de l'ajout d'une note personnalisée, réutilisable

parent d40a2c95
......@@ -16,6 +16,7 @@ use FOS\RestBundle\Controller\Annotations\Patch;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Form\FormTypeInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use ApiBundle\Form\PsCustomNoteType;
use ApiBundle\Entity\CommonInterface;
......@@ -107,7 +108,7 @@ class PsCustomNoteRestController extends FOSRestController
return $new;
return new JsonResponse($new, Codes::HTTP_CREATED);
$routeOptions = array(
'id' => $new->getId(),
'_format' => $request->get('_format')
......@@ -15,7 +15,7 @@ class PsCustomNoteType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment