Building RESTful Web Services with Spring 5 - Second Edition

Find out how to implement the REST architecture to build resilient software in Java with the help of the Spring 5.0 framework.
Preview in Mapt

Building RESTful Web Services with Spring 5 - Second Edition

Raja CSP Raman

Find out how to implement the REST architecture to build resilient software in Java with the help of the Spring 5.0 framework.

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.00
RRP $35.99
Save 49%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.00
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Building RESTful Web Services with Spring 5 - Second Edition Book Cover
Building RESTful Web Services with Spring 5 - Second Edition
$ 35.99
$ 18.00
WebServices/REST API Testing with SoapUI+ Real Time Projects [Video] Book Cover
WebServices/REST API Testing with SoapUI+ Real Time Projects [Video]
$ 201.99
$ 40.40
Buy 2 for $35.00
Save $202.98
Add to Cart

Book Details

ISBN 139781788475891
Paperback228 pages

Book Description

REST is an architectural style that tackles the challenges of building scalable web services. In today's connected world, APIs have taken a central role on the web. APIs provide the fabric through which systems interact, and REST has become synonymous with APIs.The depth, breadth, and ease of use of Spring makes it one of the most attractive frameworks in the Java ecosystem. Marrying the two technologies is therefore a very natural choice.This book takes you through the design of RESTful web services and leverages the Spring Framework to implement these services. Starting from the basics of the philosophy behind REST, you'll go through the steps of designing and implementing an enterprise-grade RESTful web service. Taking a practical approach, each chapter provides code samples that you can apply to your own circumstances.This second edition brings forth the power of the latest Spring 5.0 release, working with MVC built-in as well as the front end framework. It then goes beyond the use of Spring to explores approaches to tackle resilience, security, and scalability concerns. Improve performance of your applications with the new HTTP 2.0 standards. You'll learn techniques to deal with security in Spring and discover how to implement unit and integration test strategies.Finally, the book ends by walking you through building a Java client for your RESTful web service, along with some scaling techniques using the new Spring Reactive libraries.

Table of Contents

Chapter 1: A Few Basics
REST – a basic understanding
Imperative and Reactive programming
Reactive programming in Java and Spring 5
Our RESTful web service architecture
Summary
Chapter 2: Building RESTful Web Services in Spring 5 with Maven
Apache Maven
Developing RESTful web services
Summary
Chapter 3: Flux and Mono (Reactor Support) in Spring
Benefits of Reactive programming
User class with Reactive – REST
Summary
Chapter 4: CRUD Operations in Spring REST
CRUD operations in Spring REST 
Summary
Chapter 5: CRUD Operations in Plain REST (Without Reactive) and File Upload
Mapping CRUD operations to HTTP methods
Creating resources
CRUD operation in Spring 5 (without Reactive)
File uploads – REST API
Summary
Chapter 6: Spring Security and JWT (JSON Web Token)
Spring Security
Summary
Chapter 7: Testing RESTful Web Services
JUnit
MockMvc
Postman
SoapUI
jsoup
Summary
Chapter 8: Performance
HTTP compression
HTTP caching
Cache implementation
Summary
Chapter 9: AOP and Logger Controls
Aspect-oriented programming (AOP)
Logger controls
Summary
Chapter 10: Building a REST Client and Error Handling
Building a REST client
Error handling
Summary
Chapter 11: Scaling
Clustering
Load balancing
Scaling databases
Distributed caching
Summary
Chapter 12: Microservice Basics
Monolithic architecture and its drawbacks
Introduction to microservices
Benefits of microservices
Microservice components
Microservice tools
Summary
Chapter 13: Ticket Management – Advanced CRUD
Ticket management using CRUD operations
Registration
Login and token management
Ticket management
Admin Ticket management
CSR Ticket management
Summary

What You Will Learn

  • Deep dive into the principles behind REST
  • Expose CRUD operations through RESTful endpoints with the Spring Framework
  • Devise response formats and error handling strategies, offering a consistent and flexible structure to simplify integration for service consumers
  • Follow the best approaches for dealing with a service's evolution while maintaining backward compatibility
  • Understand techniques to secure web services
  • Comply with the best ways to test RESTful web services, including tips for load testing
  • Optimise and scale web services using techniques such as caching and clustering

Authors

Table of Contents

Chapter 1: A Few Basics
REST – a basic understanding
Imperative and Reactive programming
Reactive programming in Java and Spring 5
Our RESTful web service architecture
Summary
Chapter 2: Building RESTful Web Services in Spring 5 with Maven
Apache Maven
Developing RESTful web services
Summary
Chapter 3: Flux and Mono (Reactor Support) in Spring
Benefits of Reactive programming
User class with Reactive – REST
Summary
Chapter 4: CRUD Operations in Spring REST
CRUD operations in Spring REST 
Summary
Chapter 5: CRUD Operations in Plain REST (Without Reactive) and File Upload
Mapping CRUD operations to HTTP methods
Creating resources
CRUD operation in Spring 5 (without Reactive)
File uploads – REST API
Summary
Chapter 6: Spring Security and JWT (JSON Web Token)
Spring Security
Summary
Chapter 7: Testing RESTful Web Services
JUnit
MockMvc
Postman
SoapUI
jsoup
Summary
Chapter 8: Performance
HTTP compression
HTTP caching
Cache implementation
Summary
Chapter 9: AOP and Logger Controls
Aspect-oriented programming (AOP)
Logger controls
Summary
Chapter 10: Building a REST Client and Error Handling
Building a REST client
Error handling
Summary
Chapter 11: Scaling
Clustering
Load balancing
Scaling databases
Distributed caching
Summary
Chapter 12: Microservice Basics
Monolithic architecture and its drawbacks
Introduction to microservices
Benefits of microservices
Microservice components
Microservice tools
Summary
Chapter 13: Ticket Management – Advanced CRUD
Ticket management using CRUD operations
Registration
Login and token management
Ticket management
Admin Ticket management
CSR Ticket management
Summary

Book Details

ISBN 139781788475891
Paperback228 pages
Read More

Read More Reviews

Recommended for You

WebServices/REST API Testing with SoapUI+ Real Time Projects [Video] Book Cover
WebServices/REST API Testing with SoapUI+ Real Time Projects [Video]
$ 201.99
$ 40.40
Building Web Apps with Spring 5 and React [Video] Book Cover
Building Web Apps with Spring 5 and React [Video]
$ 124.99
$ 25.00
Learn iOS 11 Programming with Swift 4 - Second Edition Book Cover
Learn iOS 11 Programming with Swift 4 - Second Edition
$ 39.99
$ 20.00
Mastering Bootstrap 4 - Second Edition Book Cover
Mastering Bootstrap 4 - Second Edition
$ 35.99
$ 18.00
Building RESTful Web services with Go Book Cover
Building RESTful Web services with Go
$ 35.99
$ 18.00
ServiceNow Cookbook - Second Edition Book Cover
ServiceNow Cookbook - Second Edition
$ 35.99
$ 18.00