An OpenAPI document (YAML/JSON) formally describes every endpoint: paths, methods, parameters, request/response schemas, and auth. From it you can auto-generate docs (Swagger UI), client SDKs, server stubs, mocks, and validation. Writing the spec first aligns teams on the contract before any code. It's the de facto standard for REST APIs.