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

        return $this->cgetNodes($request);
    }
public function cgetAction(Request $request)
    {
        if (null !== $request->get('fields')) {
            return $this->cgetContent($request);
        }

        return $this->cgetNodes($request);
    }
public function cgetAction ( Request $ request ) { if ( null !== $ request -> get ( 'fields' ) ) { return $ this -> cgetContent ( $ request ) ; } return $ this -> cgetNodes ( $ request ) ; }
returns all content items as JSON String.

@param Request $request

@return \Symfony\Component\HttpFoundation\Response
returns all content items as JSON String .