The Power of Platform API Governance for Enterprises

When you hear conversations about API governance today, most discussions center on what we consider to be API design governance, where we are “governing” the consistency of the surface area of our APIs. This is an obvious place to begin with governance because inconsistencies in the design of an API can cause the most visible and painful problems downstream. But while you need to begin getting a handle on your enterprise API design governance strategy, we feel that it’s important for you to invest more broadly in what we consider “platform API governance.” This means investing in the discovery, reliability, consistency, delivery, and observability of not just each individual API, but the operations surrounding them.

Most Postman customers investing in API governance are either just getting started and want to understand what they should be doing to shape governance, or they’ve begun investing in API design governance and are facing challenges applying governance consistently across all their teams and APIs. Without the ability to discover teams, APIs, and the work occurring across operations, they are unable to effectively apply API design governance at scale. Additionally, without the ability to observe the results of overall quality and governance at scale across operations, they can’t get past applying it to just a handful of teams.

We have found that the organizations who are further along in their API-first journey are approaching governance from a more platform perspective, ensuring that APIs are discoverable, reliable, consistent in design, and delivered using a well-defined lifecycle—while also making sure everything along the way is observable by default.

Related: Enterprise best practices: successfully govern your API content and users

API definition (discovery)

One reason we see enterprise organizations struggle with their API governance is the lack of discovery that exists across not just APIs, but also artifacts, documentation, and all the other work occurring around each API. You simply cannot govern what you can’t find, and the more visible APIs and the operations are behind them are, the more likely you will be able to make API governance take root.

A bedrock of platform API governance is ensuring that discovery is the default across your operations:

  • Workspace: Ensure that every API has a private, partner, or public workspace to access the operations surrounding each API.
  • OpenAPI: Ensure there is always a human and machine-readable API artifact available as the source of truth for each API.
  • Repository: Establish a Git repository for each API, syncing OpenAPI and collections to the repository as part of the lifecycle.
  • Environment: Provide development, staging production, and other environments available to apply manually or automatically.
  • Documentation: Requiring that all APIs have complete and up-to-date documentation available to demonstrate what is possible.
  • Team: Having the team behind each API available as a list, providing name, and contact information for consumers to use.

This is the foundation for your API governance. Every API should possess these elements, and there should be a blueprint for teams to follow when it comes to setting up new APIs and bringing existing APIs up to current standards. Investment in these areas will make API governance possible in the area of design and other aspects of API operations. Once you get a handle in these areas and realize that each has APIs of its own, you’ll see entirely new ways you can elevate API governance efforts across your teams.

API instance (reliability)

The next area we are looking to include as part of API governance is the overall reliability of each instance of an API. We want to provide a baseline set of tests across all APIs. This ensures that the business purpose for each API is being realized, but also that it is done in a way that meets service level agreements (SLA) and doesn’t introduce any vulnerabilities or security issues into operations. It’s key to establish common ways in which teams can confidently deliver and operate reliable API instructors behind our applications and integrations:

  • Contract Testing Collection: Produce a single collection that pulls the JSON schema for each API operation and validates the request and response.
  • Performance Testing Collection: Produce a single collection that tests one or more API operations, ensuring that it meets a minimum time threshold.
  • Security Testing Collection: Produce a single collection that applies a common set of security vulnerability tests and 3rd party API security services.

This dimension of API governance historically lives under quality, testing, and other areas of operations, but it makes a lot of sense to consider this as part of the API governance stack. This places reliability as part of governance and allows us to use the same artifacts and tooling we are using for testing to govern our APIs and the API operations around them. We can test the instances of our APIs, the surface area of those APIs, and the operations and infrastructure that move those APIs forward across a well-known API lifecycle.

API design (consistency)

Now we get to the portion of platform governance that people usually talk about when it comes to API governance—governing the design of your API. API design governance is about making sure the technical details of the surface area of your API are as consistent as possible, no matter which team designed and developed the API. This is an area of API governance that we feel is important. Still, it is also one that becomes more difficult without a single source of truth (OpenAPI) in a known workspace. It can quickly become a rabbit hole when it comes to thinking about all the different ways you can lint the OpenAPI for your API—so we recommend starting small.

Design Governance Collections

Establish a standalone collection that pulls the OpenAPI for each API using the Postman API and linting using Spectral.

  • Info: Ensure that there are title, description, and other essential information properties.
  • Versioning: Require a standard semantic or date-based versioning applied to each API.
  • Operations: Make sure each individual operation has a summary, description, and id.
  • Parameters: Standardize the format of parameter names, and all have descriptions.
  • Responses: Push for a common set of status codes, media types, and schema responses.
  • Schema: Standardize all request and response schema using JSON Schema components.

There are plenty of other governance rules that can be applied at this level, but this provides an introductory set of concerns that should be addressed early on as part of API governance efforts. Teams will learn a lot by ensuring that these simple rules are consistently applied across API operations, enabling all teams to apply governance manually using collection runners, scheduling using monitors, or baked into CI/CD pipelines. We’re able to use the same infrastructure we are using to test each API instance to test the surface area of the API for consistent design across any team.

API operations (delivery)

API governance isn’t something you do once and step away from. It’s something that is ongoing and should be wired up to your existing software development lifecycle and monitored in real time. Operational governance allows us to automate the reliability and consistency portions of our governance, but through additional PlatformOps collection integrations, we can configure, optimize, and automate our gateway, portals, documentation, and other building blocks of API operations. We then leverage the same infrastructure we are using to test individual APIs to also “test” the surface area of our APIs and the operations that surround them.

  • Monitors: Ensure you are monitoring operations and paying attention even when the team is off doing other things.
    • Contract: There is a monitor scheduled to test the contract every 24 hours.
    • Performance: There is a monitor to test the performance of the API every hour.
    • Security: There is a monitor to test the security of the API every 24 hours.
    • Governance: There is a monitor to test the governance of the API every 24 hours.
  • Pipeline: Ensure you are applying governance at the CI/CD pipeline layer, running the contract, security, and governance tests with each build.
    • Contract: Run the contract testing collection in the pipeline.
    • Security: Run the contract security collection in the pipeline.
    • Governance: Run the governance testing collection in the pipeline.
  • Gateway: Govern the deployment of APIs via gateways, allowing for manual and automated configuration and observability to occur.
    • Authentication: Ensure that a gateway authentication is properly configured.
    • Usage Plans: Require that each API operates within a specific usage plan.
    • Usage History: Check usage logs for an API for common patterns.

The governance of operations doesn’t stop at just monitoring our testing, security, and design governance. Baking it into our CI/CD pipeline, we can extend this to other operational areas. The same collection-based approach we are using to test each instance of API and to govern API design can be used to validate that documentation is complete and updated, possesses examples, and always has SDKs and code snippets automatically generated. When you realize that your API operations themselves have APIs, your approach to API governance becomes much broader than just the design of your APIs. Your teams can become more productive and realize higher levels of quality—all while fulfilling governance at scale.

API observability (awareness)

The final and essential area of API governance needed to achieve the best results at scale across business domains and teams: make sure everything is as observable as possible. Provide real-time reporting and activity visibility for each API, but also take more advantage of platform integrations to feed everything into existing API infrastructure. Operations around APIs then have the necessary observability, and governance itself becomes as observable as possible in real time.

  • Reporting: Leverage native reporting to understand what is happening with each API in use as part of API operations.
  • Application Performance Management (APM): Use monitors to pipe the results of collection runs into DataDog to make the API observable.
  • Activity: Understand how the workspace, APIs, collections, monitors, and other elements are being configured as part of your work.

Collections provide connections to APIs and can be monitored on a schedule, integrated into CI/CD pipelines, and can make the API lifecycle and governance more observable. Collections are the gears of our API operations: use them to define, automate, and make everything observable via native integrations and PlatformOps collections in service of platform API governance.

Platform API governance

API governance is much more than just about the design of your API. It starts with the discovery of your APIs and the operations around them, then depends on the reliability and security of your APIs, as well as the consistency, delivery, and overall awareness you possess across each API—and also across hundreds or thousands of different APIs. If you can’t easily discover new and existing APIs, and the artifacts and operations around them, it’s going to become much more difficult to govern reliably over time. Ad hoc governance without a platform approach makes it difficult for teams to reliably find OpenAPI, JSON Schema, and other artifacts; governing them becomes exponentially more difficult with each version that is released.

Top 4 governance challenges enterprise customers tell us they’re facing today:

  1. The lack of discoverability of APIs and API operations.
  2. The lack of reliability of individual API instances is a challenge for teams, requiring more investment in contract, integration, and performance testing, but also effectively securing APIs.
  3. The lack of consistency in the design of APIs is causing very visible and painful downstream effects for API producers and consumers.
  4. The lack of consistency in delivering APIs across teams using a well-known API lifecycle.

All of this results in very little observability into the health and state of APIs, preventing teams from being able to move in the right direction. Greater discovery, reliability, consistency, delivery, and awareness all wrap up into a more effective way to define and deliver governance for each individual API, but also create a blueprint for how APIs at a huge scale can be defined, delivered, observed, and iterated upon.

What do you think about this topic? Tell us in a comment below.

Comment

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.