Controller/ArticleController.php
public function getAction($uuid, Request $request)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);
        $document = $this->getDocumentManager()->find(
            $uuid,
            $locale
        );

        return $this->handleView(
            $this->view($document)->setSerializationContext(
                SerializationContext::create()
                    ->setSerializeNull(true)
                    ->setGroups(['defaultPage', 'defaultArticle', 'smallArticlePage'])
            )
        );
    }
public function getAction($uuid, Request $request)
    {
        $locale = $this->getRequestParameter($request, 'locale', true);
        $document = $this->getDocumentManager()->find(
            $uuid,
            $locale
        );

        return $this->handleView(
            $this->view($document)->setSerializationContext(
                SerializationContext::create()
                    ->setSerializeNull(true)
                    ->setGroups(['defaultPage', 'defaultArticle', 'smallArticlePage'])
            )
        );
    }
public function getAction ( $ uuid , Request $ request ) { $ locale = $ this -> getRequestParameter ( $ request , 'locale' , true ) ; $ document = $ this -> getDocumentManager ( ) -> find ( $ uuid , $ locale ) ; return $ this -> handleView ( $ this -> view ( $ document ) -> setSerializationContext ( SerializationContext :: create ( ) -> setSerializeNull ( true ) -> setGroups ( [ 'defaultPage' , 'defaultArticle' , 'smallArticlePage' ] ) ) ) ; }
Returns single article.

@param string $uuid
@param Request $request

@return Response
Returns single article .