APIs are used in a wide range of application scenarios; if we are working in a web environment, for example on online stores, they are used in the form of so-called web APIs. Examples of the use of web APIs include the integration of various payment options, rating systems and other services. But what role does the OpenAPI specification play exactly?
“The OpenAPI Specification (OAS) defines a standard, programming language-agnostic interface description for HTTP APIs, which allows both humans and computers to discover and understand the capabilities of a service […]. Similar to what interface descriptions have done for lower-level programming, the OpenAPI Specification removes guesswork in calling a service.” (On the OpenAPI specification v. 3.1.0) What is first described in a rather complicated way in this quote is intended to do just the opposite: the OpenAPI specification provides a standard, an open and vendor-neutral description format through which (especially REST-compliant, more on that later) APIs can be described, tested and documented.
A brief history detour: The OpenAPI specification was once part of the Swagger software project, but then became an independent project in 2016, managed by the OpenAPI Initiative. Well-known companies such as Google, Microsoft and SAP are members of the initiative. In the meantime, the standard is in version 3.1.0.
Comments
No comments