Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Microservices with Java 9

You're reading from   Mastering Microservices with Java 9 Build domain-driven microservice-based applications with Spring, Spring Cloud, and Angular

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781787281448
Length 316 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sourabh Sharma Sourabh Sharma
Author Profile Icon Sourabh Sharma
Sourabh Sharma
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. A Solution Approach 2. Setting Up the Development Environment FREE CHAPTER 3. Domain-Driven Design 4. Implementing a Microservice 5. Deployment and Testing 6. Reactive Microservices 7. Securing Microservices 8. Consuming Services Using a Microservice Web Application 9. Best Practices and Common Principles 10. Troubleshooting Guide 11. Migrating a Monolithic Application to Microservice-Based Application

REST API testing using the Postman Chrome extension

This book uses the Postman - REST Client extension for Chrome to test our REST service. I use the 5.0.1 version of Postman. You can use the Postman Chrome application or any other REST Client to test your sample REST application, as shown in the following screenshot:

Postman - Rest Client Chrome extension

Let's test our first REST resource once you have the Postman - REST Client installed. We start the Postman - REST Client from either the Start menu or from a shortcut.

By default, the embedded web server starts on port 8080. Therefore, we need to use the http://localhost:8080/<resource> URL for accessing the sample REST application. For example: http://localhost:8080/calculation/sqrt/144.

Once it's started, you can type the Calculation REST URL for sqrt and value 144 as the path parameter. You can see it in...

You have been reading a chapter from
Mastering Microservices with Java 9 - Second Edition
Published in: Dec 2017
Publisher: Packt
ISBN-13: 9781787281448
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime