Book Image

Digital Transformation and Modernization with IBM API Connect

By : Bryon Kataoka, James Brennan, Ashish Aggarwal
Book Image

Digital Transformation and Modernization with IBM API Connect

By: Bryon Kataoka, James Brennan, Ashish Aggarwal

Overview of this book

IBM API Connect enables organizations to drive digital innovation using its scalable and robust API management capabilities across multi-cloud and hybrid environments. With API Connect's security, flexibility, and high performance, you'll be able to meet the needs of your enterprise and clients by extending your API footprint. This book provides a complete roadmap to create, manage, govern, and publish your APIs. You'll start by learning about API Connect components, such as API managers, developer portals, gateways, and analytics subsystems, as well as the management capabilities provided by CLI commands. You’ll then develop APIs using OpenAPI and discover how you can enhance them with logic policies. The book shows you how to modernize SOAP and FHIR REST services as secure APIs with authentication, OAuth2/OpenID, and JWT, and demonstrates how API Connect provides safeguards for GraphQL APIs as well as published APIs that are easy to discover and well documented. As you advance, the book guides you in generating unit tests that supplement DevOps pipelines using Git and Jenkins for improved agility, and concludes with best practices for implementing API governance and customizing API Connect components. By the end of this book, you'll have learned how to transform your business by speeding up the time-to-market of your products and increase the ROI for your enterprise.
Table of Contents (21 chapters)
1
Section 1: Digital Transformation and API Connect
5
Section 2: Agility in Development
15
Section 3: DevOps Pipelines and What's Next

Removing fields from GraphQL

Since you know that the GraphQL fields are developed on backend systems by developers, you might find out that some fields that are presented may not be allowed due to compliance and security reasons. An example would be social security numbers or certain patient history information. This poses a challenge for API developers because they know they need to obfuscate the fields in some way. API Connect provides you with a simple way to ensure that access to fields aren't allowed to the consumers. You can do this by removing the fields in GraphQL Schema.

To see how this can be accomplished, perform the following steps:

  1. Navigate to any GraphQL API and click on GraphQL Schema. You will see a Show/hide column where there is a gear icon next to the field. Refer to the following screenshot:

    Figure 9.23 – Removing a field using Show/hide

  2. By clicking on the gear icon, you can remove the field from the fields presented to the API developer...