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 ...
Get Spring MVC Beginner’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.