RESTful Services



What is RESTful Services

                              Actually this is a protocol REpresentational State Transfer protocol to the Client and Server communication. Basically resources are identify by a URL. REST is a way to identify resources which appends on a particular environment.

There are key elements in RESTful implementation. 

1. Resources

          This is use for give some commands using an URL

          web application url :- http://www.testServer.com
          command through the url :- http://www.testServer.com/students/001  
                                                           (Give the details of students whose number is 001 )

2. Request Verbs 

          These are the verbs that use to define the operation type of the request

          GET - get the details from the web application
          POST - create a new entry and add new object to the web application (eg- new Student)
          PUT - update existing record details
          DELETE - remove record from the web application

3. Request Headers

          This contains some some instruction sent through the request (authorization configurations)

4. Request Body

          This contains the data which are sent by the request as POST or PUT methods (Details of a student)

5. Response Body

          This is the area to store the data from the web Server after the request completed (Details of the student 001)
                                        {
                                            "studentId" : '001',
                                            "studentName" : 'peter',
                                            "age" : '17'
                                        }

6. Response Status

          This is a code by default came from the server, this can contain some error codes if there is a error with the server or the request


Comments

Popular posts from this blog

"Application Frameworks" Are you familiar with this ?

Description about "NodeJs"