OpenAPI-Specification README

The project's README from github.com/OAI/OpenAPI-Specification. As one markdown file: README.md.

The OpenAPI Specification

Build Status Issue triagers

OpenAPI logo

The OpenAPI Specification is a community-driven open specification within the OpenAPI Initiative, a Linux Foundation Collaborative Project.

The OpenAPI Specification (OAS) defines a standard, programming language-agnostic interface description for HTTP APIs. This allows both humans and computers to discover and understand the capabilities of a service without requiring access to source code, additional documentation, or inspection of network traffic. When properly defined via OpenAPI, a consumer can understand and interact with the remote service with a minimal amount of implementation logic. Similar to what interface descriptions have done for lower-level programming, the OpenAPI Specification removes guesswork in calling a service.

Use cases for machine-readable API definition documents include, but are not limited to: interactive documentation; code generation for documentation, clients, and servers; and automation of test cases. OpenAPI documents describe API services and are represented in YAML or JSON formats. These documents may be produced and served statically or generated dynamically from an application.

The OpenAPI Specification does not require rewriting existing APIs. It does not require binding any software to a service – the described service may not even be owned by the creator of its description. It does, however, require that the service's capabilities be described in the structure of the OpenAPI Specification. Not all services can be described by OpenAPI – this specification is not intended to cover every possible style of HTTP APIs, but does include support for REST APIs. The OpenAPI Specification does not mandate a specific development process such as design-first or code-first. It does facilitate either technique by establishing clear interactions with an HTTP API.

This GitHub project is the starting point for OpenAPI. Here you will find the information you need about the OpenAPI Specification, simple examples of what it looks like, and some general information regarding the project.

Versions

This repository contains the Markdown sources for all published OpenAPI Specification versions. For release notes and release candidate versions, refer to the releases page.

See It in Action

If you just want to see it work, check out the list of current examples.

Tools and Libraries

Looking to see how you can create your own OpenAPI definition, present it, or otherwise use it? Check out the growing list of implementations.

Participation

The current process for developing the OpenAPI Specification is described in the Contributing Guidelines.

Build, test, schema publication, and release command infrastructure is shared with other OpenAPI Initiative specification repositories through OAI/build-infra. See that repository's README and CONTRIBUTING guide for details on the shared tooling.

Developing the next version of the OpenAPI Specification is guided by the Technical Steering Committee (TSC). This group of committers bring their API expertise, incorporate feedback from the community, and expand the group of committers as appropriate. All development activity on the future specification will be performed as features and merged into this branch. Upon release of the future specification, this branch will be merged to main.

The TSC holds weekly web conferences to review open pull requests and discuss open issues related to the evolving OpenAPI Specification. Participation in weekly calls and scheduled working sessions is open to the community. You can view the entire OpenAPI technical meeting calendar online.

The OpenAPI Initiative encourages participation from individuals and companies alike. If you want to participate in the evolution of the OpenAPI Specification, consider taking the following actions:

Not all feedback can be accommodated, and there may be solid arguments for or against a change being appropriate for the specification.

Licensing

See: License (Apache-2.0)

OpenAPI-Specification (OAI/OpenAPI-Specification)

Searching Database…

这是什么东西?OpenAPI 规范(OAS)是由 OpenAPI Initiative(OpenAPI 倡议组织)推动的社区开放标准,也是 Linux 基金会的一个协作项目:它提供了一种标准化的、与编程语言无关的方式来描述 HTTP API。
所以这是一个文档,不是程序?它是一份规范,不是软件:这个仓库保存了每个已发布 OpenAPI 版本的 Markdown 原文——你只需阅读它,并按照它来编写文档;没有任何东西需要运行。
那我到底该怎么描述我的 API?按照规范的结构,写一份 YAML 或 JSON 文档来描述这个服务的功能——可以手写,可以作为静态文件提供,也可以从你的应用中动态生成。你现有的 API 完全不需要重写。
OpenAPI 能覆盖所有类型的 API 吗?不能——这份规范并不打算覆盖所有可能风格的 HTTP API,不过它明确支持 REST API。
我可以为一个不属于我的 API 写描述文档吗?可以。描述文档不需要绑定到对应的服务——README 里也提到,被描述的服务甚至可以不属于写描述的人。
有可以用来校验我文档的模式(schema)吗?有——发布 schema 已经内置在仓库的发布工具里,所以每个版本的 Markdown 原文都会附带机器可读的 schema。
这份规范收费吗?背后是谁在支持?它以 Apache-2.0 许可证免费开放,由社区驱动的 OpenAPI Initiative(OpenAPI 倡议组织)维护,是 Linux 基金会的一个协作项目。
What are similar projects?swagger-ui, public-api-lists, bips, API, postgrest, fastapi, A2A, posting
Creator
OAI
Size
9.7 MB
Stars
31.3K
Age
12y
Commits · 90 Days