Site iconAxway Blog

The importance of API Design

Programming or Software development abstract concept. Top view at screen laptop with business icons, programming language or fragments coding. Technology banner of Software developer company

The design and construction of a building is a good analogy to exemplify the importance of API Design. A functional building that meets the residents’ and visitors’ needs with excellence usually starts with a good architectural design, then a good plan, engineering calculations and finally a constructor to do the job.

The world of APIs is not different: a well-designed API will generate numerous benefits, including an API with good usability, resilience and even good profitability.

Many API projects in the recent years have focused on mobility building Apps, and integrating with internal systems. Commonly in engineers and developers hands, these projects were born in the bottom-up model, meaning the definition of the API emerged during the development of the API itself. This situation eventually creates APIs with low-usability that can achieve internal integration needs, but can negatively impact Business-to-Business (B2B) and open API platforms as we will see later.

But why should we design an API?

B2B APIs and poorly designed open APIs impacts the business negatively.

In another analogy, I like to say that a B2B API, for example, is like a cable guy who will perform a service in our home. Our expectation is that the cable guy arrives on time, and performs the promised work quickly and efficiently. Other features such as kindness and cleanliness will add even more value to the service provided.

A B2B API is the same, and the API design assures that everything that can be done for the API-consuming user experience has been strategically studied and implemented.

Now imagine the open APIs, also called Experience APIs. These APIs will be consumed by third-parties who have no direct relationship with your company, and if this third-party is not satisfied with the experience from your APIs, this user will quickly migrate to a competitor affecting your business revenue.

To better exemplify the types of APIs and the importance of API design on them, I will reference the Axway whitepaper “Banking APIs: State of the Market Report.” This whitepaper presents the types of APIs and their influence on the business.

The image has three types of APIs and their importance to the business that we can exemplify as follows:

APIs that are not previously designed and specified will cause functional problems and business difficulties. But what happens when your API is not well designed:

These are some examples of problems that occur when API design is not good, and all examples impact the success of the API and the business.

No specification or poor specification can make a project fail after consuming several hours and resources. Without API designing a wrong decision can be taken during the API building process, and it is not uncommon to find projects where the front-end cannot perform its functions because the API can´t do what it should do.

APIs are specified with market specifications.

Today the OAS specification “Open API Specification” is the most widely used.

We specify APIs with industry specifications that have been defined and are being updated and improved by experts. OAS is an example of specifying REST APIs with a series of native definitions and extensions to design an API with all the necessary features. There are other specifications but these will not be covered by this article.

The OAS specification uses a JSON or YAML format notation to define various API features such as: name, base URL, documentation description, methods and paths, request schemes, response schemes, request examples, response examples, contact, and other features.

In addition to the specification, we will need other support tools:

We can conclude that API Design is an essential first step to create successful APIs. In a world of Open APIs and open platforms, well-designed APIs will be vital to good business. We should combine dedicated teams to design business-friendly APIs, along with tools that accelerate and facilitate the importance of API Design.

Watch Part 1 in the series of Mastering the API Lifecyle.

Exit mobile version