Files
FHC-Core/application/controllers/api/v1/Test.php
T
Paolo 699aca74d1 - Changed helper and language autoload
- Changed language config
- Removed never used constants
- Changed rest_language in rest config file
- Adapted models that where extending FHC_Model
- Adapted code to load hlp_return_object
- Adapted code to use exit status codes constants
2019-04-25 12:09:31 +02:00

34 lines
683 B
PHP

<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Testing class for REST calls and authentication
*/
class Test extends REST_Controller
{
public function __construct()
{
parent::__construct();
// Loads helper message to manage returning messages
$this->load->helper('hlp_return_object');
}
/**
* Test HTTP GET method
*/
public function getTest()
{
$this->response(success('API HTTP GET call test succeed'), REST_Controller::HTTP_OK);
}
/**
* Test HTTP POST method
*/
public function postTest()
{
$this->response(success('API HTTP POST call test succeed'), REST_Controller::HTTP_OK);
}
}