Controller/Api/Resource/BaseResourceController.php
protected function processPost(Request $request)
    {
        $resource = $this->getResourceManager()->createNewInstance();
        return $this->processAction($request, 'POST', $resource);
    }
protected function processPost(Request $request)
    {
        $resource = $this->getResourceManager()->createNewInstance();
        return $this->processAction($request, 'POST', $resource);
    }
protected function processPost ( Request $ request ) { $ resource = $ this -> getResourceManager ( ) -> createNewInstance ( ) ; return $ this -> processAction ( $ request , 'POST' , $ resource ) ; }
Create a new Resource.

@param Request $request

@return Resource
Create a new Resource .