This API REST SERVER is based in php codeigniter framework and the article (RESTful web services in codeigniter).

HTTP methods

We are going to use following HTTP methods.

  1. GET: Get method is used to fetch data about a resource. In CodeIgniter $this->get() method is used to get parameters from URL or Query String.

  2. POST: POST method is used to create a new resource. $this->post() method in CI is used to access values sent by client.

  3. PUT: To update an existing resource PUT method is used. CodeIgniter’s $this->put() method is used to access values.

  4. DELETE: To delete a resource this method is used. In CodeIgniter $this->delete() method is used.