ReactJS REST API PUT Example

React is a declarative, efficient, and flexible JavaScript library for building user interfaces. The full documentation is available at https://reactjs.org/. In this tutorial I will show you how to update the existing resource (REST API PUT) using React JS framework. The article, ReactJS REST API PUT Example, will use ready made available REST API https://jsonplaceholder.typicode.com/posts for testing purpoase. You can also create and deploy your own service using PHP, Codeigniter or Spring, Jersey etc. and call using React JS framework. Here you will see only PUT example (other HTTP verbs GET, POST, DELETE, HEAD, OPTIONS etc.).

You may also like to read ReactJS REST API GET Example ReactJS REST API POST Example ReactJS REST API DELETE Example

Continue reading “ReactJS REST API PUT Example”

Working with RESTful services in Codeigniter – PUT example

In this tutorial I am going to show you how we can work with RESTful or REST webservice in Codeigniter framework.

You may also like the Working with RESTful services in Codeigniter – POST example,  Codeigniter GET example with REST service and Working with RESTful services in Codeigniter – DELETE example

Introduction

The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web service is implemented using HTTP and the principles of REST. Typically, a RESTful Web service should define the following aspects:

The base/root URI for the Web service such as http://<host>/<appcontext/contextpath>/<url pattern>/<resources>.
The MIME type of the response data supported, which are JSON/XML/TEXT/HTML etc.
The set of operations supported by the service. (for example, POST, GET, PUT or DELETE). Continue reading “Working with RESTful services in Codeigniter – PUT example”