src/Sulu/Bundle/PageBundle/Controller/NodeController.php
public function getAction(Request $request, $id)
    {
        if (null !== $request->get('fields')) {
            return $this->getContent($request, $id);
        }

        return $this->getSingleNode($request, $id);
    }
public function getAction(Request $request, $id)
    {
        if (null !== $request->get('fields')) {
            return $this->getContent($request, $id);
        }

        return $this->getSingleNode($request, $id);
    }
public function getAction ( Request $ request , $ id ) { if ( null !== $ request -> get ( 'fields' ) ) { return $ this -> getContent ( $ request , $ id ) ; } return $ this -> getSingleNode ( $ request , $ id ) ; }
returns a content item with given UUID as JSON String.

@param Request $request
@param string $id

@return \Symfony\Component\HttpFoundation\Response
returns a content item with given UUID as JSON String .