What is OpenAPI / Swagger?
Turkish: OpenAPI
OpenAPI is an open standard for describing RESTful APIs in a machine- and human-readable format, also known as Swagger.
What Is OpenAPI?
OpenAPI describes a REST API as a standard contract: which endpoints exist, which parameters they accept, what responses they return, and how authentication works. The contract is usually stored as a YAML or JSON file.
The name Swagger is still used in the ecosystem because Swagger tools can read an OpenAPI file and generate visual documentation, test consoles, or client code. OpenAPI is the name of the standard itself.
What an OpenAPI File Contains
- Paths: Endpoint addresses such as
/orders/{id} - Methods: HTTP operations such as
GET,POST,PUT, andDELETE - Parameters: Query, path, header, and cookie parameters
- Request body: JSON schemas and required fields
- Responses: Status codes, example responses, and error formats
- Security schemes: API key, OAuth2, or bearer token definitions
The file is more than documentation. It can drive mock servers, SDK generation, contract tests, gateway validation, and Postman collection generation.
Business Use
OpenAPI reduces ambiguity in customer integrations, mobile backends, payment and shipping connections, and service contracts between teams. A frontend team can build against a mock API before the backend is complete; an integrating customer can see which fields are required.
In REST API projects, the OpenAPI file should be versioned with the code. Otherwise documentation quickly drifts away from real API behavior and integration errors increase.
Related Terms
API documentation explains endpoints, authentication, parameters, sample requests, responses, and errors so developers can integrate reliably.
API MockAn API mock imitates expected endpoints and responses so frontend, mobile, and test teams can move before the real service is ready.
API VersioningAPI versioning defines a release strategy for new fields, rules, and endpoint changes without breaking existing clients.
API (Application Programming Interface)An API is a contract that lets software systems request approved data or actions from one another through documented endpoints.
GraphQL SchemaA GraphQL schema is the contract layer that defines API types, queries, mutations, and relationships between fields.
PostmanPostman is an API collaboration platform for sending requests, organizing collections, writing tests, and sharing documentation.
REST APIA REST API designs web services around resources and HTTP methods, making integrations predictable across web and mobile systems.