IATA Open Air API Standards and Best Practices
Revision History
Version | Date | Description of change |
1.0 | May 2020 | Initial version |
1.1 | February 2021 | OAS Schema mapping with AIDM elements: 2.3.14 Schema Object; Resource naming: 2.3.3 URI, 2.3.4 Server Object, 2.3.6 Paths Object; Versioning: 2.3.2 Info Object, 3.2 Versioning. |
1.2 | August 2021 | OAS Schema mapping with AIDM elements: 2.3.14 Schema Object; Description of industry standard APIs. |
1.1. Purpose
IATA’s Open Air initiative was created to develop industry standards and best practices for the use of RESTful API technology in the airline industry, and an API ecosystem conformant to the standards.
The purpose of this document is to define a common technical approach to describing API Definitions so that industry parties can benefit from a shared understanding leading to efficiency of API development, understanding, implementation and use of conformant APIs.
1.2. Audience
This standard assumes the reader has an understanding of the OAS 3.0 specification, and AIDM methodology. This document is intended for:
· API developers in the airline industry, who have experience in RESTful API design and development;
· Enterprise Architects responsible for the coherent strategies of their companies’ integration policies;
· Planners and Managers responsible for delivering business integration solutions.
1.3. Document Structure
The document covers each OAS Object and its fields or patterned fields where there is a variation with the OAS Standard, or where the Object is required but no variation is defined. The OAS nodes affected by this standard are shown in Figure 1 – Open API Standards Scope.
Variances in the standard for an Object that appears in more than one place, that is, more than one node in the OAS specification are detailed in a sub-section of the section covering the Object.
The sections detailing each object are ordered as they appear in the OAS Standard.
2. Open Air API Standard
2.1. Objective
The objective of this standard is to ensure API Documents are consistent in their structure, nomenclature and semantics and to enable the data structures in conformant messages to be validated; JSON Schema keywords for validation are utilized to achieve this.
2.2. Interpretation
When describing the Best Practices and the Checklist, the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
2.3. Standard APIs
There are 2 types of standard APIs supported in the Open Air program.
Compliant API
Conformant API
2.3.1 Compliant – Proprietary API
IATA recommends the API providers to follow the industry adopted Open Air API Standards and Best Practices in the proprietary API. The provider may design and develop the proprietary API to address any business scenario in support of any stages or any steps across the Airline Value Chain, which is shown in Figure 5.
An airline industry relevant API provider, who follows the standards and successfully delivers the API, may apply for Open Air compliance certification for the proprietary API. The certified API is recognized as a Compliant API and is listed in the Open Air Industry API Registry, providing visibility to the industry.
2.3.2 Conformant – Industry Standard API
A Conformant API is an API designed by the industry standard development bodies, for example, the business and technology working groups and boards under IATA PSC governance, to address a common business scenario faced by most of the applicable industry parties. The business scenario can be from any stages or steps across the Airline Value Chain capabilities shown in Figure 5.
A Conformant API specification MUST adhere to the Open Air standard and Best Practices. The delivery of IATA Conformant APIs MUST follow industry governance process under the Passenger Standards Conference (PSC). The business process and requirement MUST be adopted by corresponding business boards, for example, Plan Board, Shop-Order Board, Pay-Account Board, Travel Board, etc, and the API specification, as well as data model MUST be adopted by Architecture and Technology Strategy Board (ATSB).
2.4. API specification
This section defines the Open Air Standard and Best Practice for API specification. API specification is a reference manual on the API capability, meaning how the API behaves and what to expect from the API. A well-documented specification will help developers to understand and adopt the API.
An IATA Open Air API document MUST be RESTful, MUST adhere to OAS 3.0 standard, and MUST use HTTPS protocol. All data structures MUST be defined using JSON Schema with modifications as defined in the OAS 3.0 standard. Each Open Air API document MUST be available in JSON format, and MAY in addition be available in YAML format.
The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs. The Open Air Standard leverages OAS 3.0 and covers the usage of the OAS 3.0 objects and fields shown in Figure 1 below. This document does not intend to describe the usage of all required or optional OAS objects and related fields. Any API defined using the Open Air Standard MAY make use of any other objects and fields of the OAS 3.0 Standard, but any such usage MUST NOT affect the meaning or behaviour of the objects and fields covered by this standard.
2.4.1 OpenAPI Object
OpenAPI Object is the root document object of the OAS 3.0 specification.
In IATA standard API specification, the value of openapi attribute MUST be 3.0 or a minor version there-of. It means the API specification is documented using Open API Specification 3.0.
Example 1 "openapi": "3.0.2" |