[Music] Hello. Welcome to Introduction to Representational State Transfer (REST). After watching this video, you will be able to: Define the characteristics of REST. Explain the characteristics of REST and describe when using REST is a good option Representational State Transfer (REST) is an architecture style for building resources on the Web. Examples of resources for website include HTML documents, images, and script files. In a more general sense, web resources represent a source of information. For example, HTML documents define the structure of a web page. Cascading Style Sheet (CSS) documents define the presentation of a web page and image files provide a visual representation of information. REST provides the following HTTP methods: GET, POST, DELETE, PUT, OPTIONS, HEAD, TRACE, and CONNECT. To retrieve, update, or delete a resource, REST performs an action through these HTTP methods: GET, POST, and DELETE. The GET method is used to retrieve information from the server. When you use your browser to navigate to any URI, you use the GET method to get the HTML of that website. The query string containing the parameters needed for the request are sent in the URL by placing a question mark at the end of the URI, then writing the parameters. Each parameter is represented as a name-value pair. The parameters are separated by “&”. The POST method is used to post data to the server. In this case, the parameters are posted in the body of the request, not in the URI. The DELETE method is used to delete a resource from the server. To identify which resource to retrieve or update, REST uses a Uniform Resource Identifier (URI) to describe the network location of the resource. For example, the URI for a GET request can be formatted as either http://example.com/personDetail?firstName=Ahmed&age=28, Or http://example.com/personDetail/Ahmed/28. With REST services, you treat server applications as web resources. A REST service is an entry point to an application on the server. It provides information from the server application. To call a REST service, use HTTP method verbs, such as GET, PUT, and POST. To specify which REST service to call, use a URI to describe the location of the resource on the server. In this example, Enterprise Java components represent the server-side application. The client-side of the application is based on JavaScript. The server-side application makes available a list of services as REST APIs. The client-side application calls these REST APIs by using one of the HTTP methods. The request and the response can be JSON or XML over HTTP Protocol. You do not have to code the server-side in Java and the client in JavaScript. Although many people use Groovy, Rails, Python, and other languages, they all can still use REST. In this video, you learned: Representational State Transfer (REST) is an architecture style for building resources on the Web. Examples of resources for website include HTML documents, images, and script files. REST provides HTTP methods such as GET, POST, DELETE, PUT, OPTIONS, HEAD, TRACE, and CONNECT. And REST service is an entry point to an application on the server.