The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection.
Apache APISIX Dashboard supports importing OpenApi3.0(we will use OAS3.0 for short) files to create the Route. Currently we support support most of the OpenApi specifications, but there are some differences, which are in terms of compatibility and extended fields.
when we import routes from OAS3.0, some fields in OAS will be missed because there are not corresponding fields in APISIX's Route:
API General Info: used to describe the general information about your API, some times, a oas file contains a series of apis which belong to a app, so this info is different from the api's name and extra basic info.
API server and base path: upsream url + url prefix(options).
Path params: api params described in path.
Query params: api params described in query.
Responses description and links: Define the responses for a API operations.
There are some fields required in APISIX Route but are not included in the properties of OAS3.0, we added some extended fields such as upstream, plugins, hosts and so on. All extensions start with x-apisix. See reference For more details of the APISIX Route Properties
|Extended fields||APISIX Route Properties|