title: How to create Rest API in codeigniter
body: <p>To create simple Rest API I have followed below steps
  downloaded <code>CodeIgniter-restserver</code> 
  and copy pasted <code>REST_Controller</code> from downloaded file into libraries under my project(<code>src</code> is the project name).
  And then created Api.php inside controller of my project </p>
  
  <pre><code>&lt;?php
  require(APPPATH'.libraries/REST_Controller.php');
  
  class API extends REST_Controller {
  
      function test()
      {
          echo "RESTfull API";
      }
  }
  ?&gt;
  </code></pre>
  
  <p><code>
  And I run the URL</code><a href="http://localhost/src/index.php/Api/test" rel="nofollow noreferrer">http://localhost/src/index.php/Api/test</a> in <code>postman</code> but it is not showing results.</p>