TRUE, 'message' => 'API HTTP GET call test succeed' ]; $httpstatus = REST_Controller::HTTP_OK; $this->response($payload, $httpstatus); } /** * Test HTTP POST method * * It responses whith the HTTP status 200 and prints this JSON string * {"success":true,"message":"API HTTP POST call test succeed"} * * @return void */ public function postTest() { $payload = [ 'success' => TRUE, 'message' => 'API HTTP POST call test succeed' ]; $httpstatus = REST_Controller::HTTP_OK; $this->response($payload, $httpstatus); } }