Skip to content

Commit

Permalink
fix: Map request body to $resource in GenericModelController::createA…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
paxuclus committed Feb 23, 2024
1 parent f89a5c5 commit 0301dc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Controller/GenericModelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace Netlogix\WebApi\Controller;

use Doctrine\Common\Collections\Selectable;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
use Neos\Flow\Reflection\ReflectionService;
use Netlogix\JsonApiOrg\AnnotationGenerics\Controller\GenericModelController as BaseGenericModelController;
Expand Down Expand Up @@ -33,6 +34,7 @@ public function __construct(ReflectionService $reflectionService, ObjectManagerI
/**
* @param WriteModelInterface $resource
* @param string $resourceType
* @Flow\MapRequestBody("resource")
* @Security\GuardArgument("resource")
*/
public function createAction(WriteModelInterface $resource, $resourceType = '')
Expand Down

0 comments on commit 0301dc0

Please sign in to comment.