What is the purpose of an API spec file in API documentation?
- Contains all endpoints, request/response formats, parameters, headers, and
security details.
- Acts as a contract between client and server.
- Used for auto-generating documentation, client SDKs, and mock servers.