File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,6 @@ namespace AppBundle\Action;
430
430
431
431
use AppBundle\Entity\Book;
432
432
use Doctrine\Common\Persistence\ManagerRegistry;
433
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
434
433
use Symfony\Component\Routing\Annotation\Route;
435
434
436
435
class BookSpecial
@@ -446,9 +445,9 @@ class BookSpecial
446
445
* @Route(
447
446
* name="book_special",
448
447
* path="/books/{id}/special",
448
+ * methods={"PUT"},
449
449
* defaults={"_api_resource_class"=Book::class, "_api_item_operation_name"="special"}
450
450
* )
451
- * @Method("PUT")
452
451
*/
453
452
public function __invoke($data) // API Platform retrieves the PHP entity using the data provider then (for POST and
454
453
// PUT method) deserializes user data in it. Then passes it to the action. Here $data
You can’t perform that action at this time.
0 commit comments