Book Image

Spring MVC Beginner's Guide

By : Amuthan Ganeshan
Book Image

Spring MVC Beginner's Guide

By: Amuthan Ganeshan

Overview of this book

Table of Contents (19 chapters)
Spring MVC Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. 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:

    Postman—HTTP client app installation

  2. Now, a Google login page will appear...