src/Http/Models/En_HttpResponse.php
public function sendApiRest($code=200, $jsonString= '', $contentType='application/json'){
        $this->setStatusCode($code);
        $this->setContentType($contentType);
        $this->setContent($jsonString);
        $this->sendContent();
    }
public function sendApiRest($code=200, $jsonString= '', $contentType='application/json'){
        $this->setStatusCode($code);
        $this->setContentType($contentType);
        $this->setContent($jsonString);
        $this->sendContent();
    }
public function sendApiRest ( $ code = 200 , $ jsonString = '' , $ contentType = 'application/json' ) { $ this -> setStatusCode ( $ code ) ; $ this -> setContentType ( $ contentType ) ; $ this -> setContent ( $ jsonString ) ; $ this -> sendContent ( ) ; }
Metodo para API REST.
Envia una respuesta json con un codigo de respuesta
@param int $code
@param string $jsonString
@param string $contentType
Metodo para API REST . Envia una respuesta json con un codigo de respuesta