OpenAPI Tutorial: Describe Your REST API in One File
Quick answer
OpenAPI describes a REST API in one file: the paths, the operations, the request and response shapes, and the error cases, in YAML or JSON. Tools read that file to generate documentation,