Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Digital Transformation and Modernization with IBM API Connect

You're reading from   Digital Transformation and Modernization with IBM API Connect A practical guide to developing, deploying, and managing high-performance and secure hybrid-cloud APIs

Arrow left icon
Product type Paperback
Published in Jan 2022
Publisher Packt
ISBN-13 9781801070799
Length 588 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (3):
Arrow left icon
Bryon Kataoka Bryon Kataoka
Author Profile Icon Bryon Kataoka
Bryon Kataoka
James Brennan James Brennan
Author Profile Icon James Brennan
James Brennan
Ashish Aggarwal Ashish Aggarwal
Author Profile Icon Ashish Aggarwal
Ashish Aggarwal
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Section 1: Digital Transformation and API Connect
2. Chapter 1: Digital Transformation and Modernization with API Connect FREE CHAPTER 3. Chapter 2: Introducing API Connect 4. Chapter 3: Setting Up and Getting Organized 5. Section 2: Agility in Development
6. Chapter 4: API Creation 7. Chapter 5: Modernizing SOAP Services 8. Chapter 6: Supporting FHIR REST Services 9. Chapter 7: Securing APIs 10. Chapter 8: Message Transformations 11. Chapter 9: Building a GraphQL API 12. Chapter 10: Publishing Options 13. Chapter 11: API Management and Governance 14. Chapter 12: User-Defined Policies 15. Section 3: DevOps Pipelines and What's Next
16. Chapter 13: Using Test and Monitor for Unit Tests 17. Chapter 14: Building Pipelines for API Connect 18. Chapter 15: API Analytics and the Developer Portal 19. Chapter 16: What's Next in Digital Transformation Post-COVID? 20. Other Books You May Enjoy

Using a Map policy

The Map policy is perhaps one of the most user-friendly methods provided to transform request and response data. This policy provides a way to define your data structure or invoke the schema from your Definitions configuration within the API configuration itself. Once the to and from data definitions are defined, this policy provides a convenient drag and drop feature to simply connect the fields to be mapped. The Map policy also provides the ability to add conditional logic, data formatting, calculations, and more. Although this policy can provide all of these features, you should use some restraint when being tempted to get too complex with it as the simplicity may come at a cost. That cost could be the performance or your API.

To explain and demonstrate how to configure the Map policy, let's take a simple order service where we are exposing the API as a RESTful service that expects JSON as the request. The backend, or target service, however, has not...

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
Banner background image