Files
FHC-Core/application/controllers/api/v1/Test.php
T
Paolo bb52aee900 - Moved spl_autoload_register from application/config/config.php to application/config/core_includes.php
- application/config/core_includes.php is included by index.ci.php
- Renamed the prefix of the helpers from "fhc_" to "hlp_"
- Adapted the helpers includes
2018-07-18 12:04:00 +02:00

36 lines
733 B
PHP

<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
require_once APPPATH.'/libraries/REST_Controller.php';
/**
* 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_message');
}
/**
* 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);
}
}