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! 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
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering RESTful Web Services with Java

You're reading from   Mastering RESTful Web Services with Java Practical guide for building secure and scalable production-ready REST APIs

Arrow left icon
Product type Paperback
Published in Jul 2025
Publisher Packt
ISBN-13 9781835466100
Length 432 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (5):
Arrow left icon
Marián Varga Marián Varga
Author Profile Icon Marián Varga
Marián Varga
Pedro Henrique Pereira de Andrade Pedro Henrique Pereira de Andrade
Author Profile Icon Pedro Henrique Pereira de Andrade
Pedro Henrique Pereira de Andrade
Silvio de Morais Silvio de Morais
Author Profile Icon Silvio de Morais
Silvio de Morais
Thiago Bomfim Thiago Bomfim
Author Profile Icon Thiago Bomfim
Thiago Bomfim
Igor Avancini Fraga Igor Avancini Fraga
Author Profile Icon Igor Avancini Fraga
Igor Avancini Fraga
+1 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Steps to a Great API
2. Understanding RESTful Core Concepts FREE CHAPTER 3. Exposing a RESTful API with Spring 4. Documenting Your API Effectively 5. Generating Code with OpenAPI 6. Enhancing Your API
7. Managing API Evolution 8. Advanced API Concepts and Implementations 9. Securing Your RESTful API 10. Testing Strategies for Robust APIs 11. Deployment and Performance
12. Monitoring and Observability 13. Scaling and Performance Optimization Techniques 14. Alternative Java Frameworks to Build RESTful APIs 15. Deploying APIs 16. Other Books You May Enjoy
17. Index

Package structure of the Order Management API

Let us have a look at what our package structure looks like for the Order Management API:

Figure 4.5 – Package structure of implemented Order Management API

Figure 4.5 – Package structure of implemented Order Management API

Here, we can see that the Order Management API follows the same architectural approach as described in Chapter 2, following the principles of clean architecture. Let us look at the contained packages:

  • adapter: This package contains the four following packages:
    • exception: This contains all class exceptions and exception handlers
    • inbound.rest: This is responsible for handling all the inputs, transformations, and generated data from the specification
    • mapper: This contains all the mapper transformations between objects, such as toOrderRequest from OrderRequestBodyDto, and the custom-defined mappers.
    • outbound: This package contains all elements that interact with external services, such as databases and other services...
lock icon The rest of the chapter is locked
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