Building REST APIs code Igniter |
I am trying to develop REST APIs for my website. I am using CodeIgniter's PHP Framework. I have followed the tutorial mentioned on http://code.tutsplus.com/tutorials/worki...--net-8814 to create the restful apis. The tutorial is based upon the code developed on https://github.com/chriskacerguis/codeig...restserver
I have placed the rest.php in application/config folder and REST_Controller.php in application/libraries/ I have created an api in application/controllers/example.php require APPPATH.'/libraries/REST_Controller.php'; Code: class example extends REST_Controller Code: RewriteEngine On However when I send a GET Request to mywebsite.com/example/user/id/1 it redirects to the homepage. Could someone guide me |
Messages In This Thread |
Building REST APIs code Igniter - by rrpoduva - 06-02-2015, 04:03 PM
RE: Building REST APIs code Igniter - by dbsolde - 06-02-2015, 11:00 PM
RE: Building REST APIs code Igniter - by ivantcholakov - 06-02-2015, 11:23 PM
|