Time for action – consuming REST web services
Okay! We have created our REST-style controller that can serve some REST-based web requests, but we have not seen our CartRestController
class in action. Using a standard browser, we can only send
GET
or POST
requests; in order to send a PUT
or DELETE
request, we need a special tool. There are plenty of HTTP client tools available to send such requests. Let's use one such tool called Postman to test our CartRestController
. Postman is a Google Chrome browser extension, so you'd better install Google Chrome in your system before you download the Postman HTTP client. Perform the following steps:
- Go to the Postman download page, http://www.getpostman.com/, from your Google Chrome browser and click on the Download Postman link. It will take you to the Chrome web store page; click on the + FREE button to install the Postman tool in your browser. Consider the following screenshot:
- Now, a Google...