getParsedBody(); $entityType = $body->entityType ?? null; $id = $body->id ?? null; $action = $body->action ?? null; $data = $body->data ?? (object) []; if (!$entityType || !$action || !$id) { throw new BadRequest(); } $entity = $this->service->process($entityType, $action, $id, $data); return ResponseComposer::json($entity->getValueMap()); } }