This API REST SERVER is based in php codeigniter framework and the article (RESTful web services in codeigniter).
We are going to use following HTTP methods.
- 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.
- POST: POST method is used to create a new resource. $this->post() method in CI is used to access values sent by client.
- PUT: To update an existing resource PUT method is used. CodeIgniter’s $this->put() method is used to access values.
- DELETE: To delete a resource this method is used. In CodeIgniter $this->delete() method is used.