Swagger and OpenAPI for testers: reading an API description, trying calls and checking replies against a schema
Swagger is the old name of OpenAPI. Learn to read an API description, try calls on a test site, check each reply against a schema and test with a mock server.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a menu, a tasting table and plastic sample dishes. A restaurant menu tells you what you can order. For each dish it says what you must tell the waiter, such as how spicy, and what arrives on the plate. A good menu lets you plan before you walk in.
Daily List is a to-do list app. It has a doorway that other programs use to ask for tasks. Sam, the business analyst, wrote the menu for that doorway. Leo, the developer, put the menu on a web page where each dish has a Try it out button. That is like a tasting table at a test kitchen.
Tom, the tester, opens the page. He reads the menu entry for getting one task. He presses the button on the test site with a test account. The reply arrives. He checks that every part the menu promised is on the plate, and that nothing is a different kind of food.
The real kitchen is not finished yet, so the mobile team also uses plastic sample dishes. They look like the menu. They let people practise before the real food comes.
The picture has limits. A menu can be out of date, so the plate may differ. And plastic food cannot tell you how the real dish will taste.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Reading an description, trying calls on a test site, checking each reply against its schema, and using a until the real one is ready.
- Read the description
- Check the server
- Try the call
- Check the reply against the schema
- Report any difference
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The menu with items, extras and what arrives | The OpenAPI description |
| The old name on the shop sign | Swagger, the first name of the format |
| The tasting table with a Try it out button | Swagger UI on the test site |
| The list of parts on every plate | The JSON Schema for a reply |
| Plastic sample dishes | A mock server built from the description |
WHERE THIS PICTURE STOPS
- A menu can be out of date. A description can be too.
- Plastic dishes look right but cannot show how real food tastes. A mock server cannot show real behaviour.
- A tasting changes the kitchen's stock. A real call changes real data, so use the test site only.
HOOK
Read the menu, taste on the test table, check the plate.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Read the description, try it on the test site, then check the parts of every reply.
| In the trick | What it stands for |
|---|---|
| Menu with items, extras and what arrives | The OpenAPI description |
| Tasting table with a Try it out button | Swagger UI on the test site |
| List of parts on every plate | The JSON Schema for a reply |
TELL A FRIEND
Swagger is the old name of OpenAPI, and the file is a menu for an . Swagger UI lets you try calls on a test site, a schema checks each reply, and a lets you practise early.
OFTEN MIXED UP WITH Designing API tests. That lesson shows how to choose which checks to write. This lesson shows how to use the description file to learn the API, try calls and check the shape of replies.
PRACTISE AND KEEP
Sources for this topic — 17 sources
- Market practice
OpenAPI Specification v3.1.0 ↗ — OpenAPI Initiative · The OpenAPI Specification v3.1.0 defines the description file: the paths, the operations on each path, the parameters, and the replies with their status codes. The page was not opened in this batch (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary-source update: OpenAPI3.1.0 Introduction actually read 8 November2026: interface description for HTTP APIs. Not full OpenAPI audit or a generic live-message contract.
- Market practice
API Endpoints (OpenAPI learning documentation) ↗ — OpenAPI Initiative · The OpenAPI learning page on API endpoints explains paths and the operations under them (not opened in this batch)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Swagger "Try it out" functionality in the API Catalog (Zowe documentation) ↗ — Zowe (Open Mainframe Project) · After you open an operation and choose Try it out, the fields become editable; you fill in values, choose Execute and read the request and the reply; protected operations need an Authorize step first (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Exploring REST API using Swagger UI (Oracle Primavera documentation) ↗ — Oracle · Listed among pages that explain using Swagger UI to explore an API's operations (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
The JavaScript Object Notation (JSON) Data Interchange Format (Request for Comments 8259) ↗ — Internet Engineering Task Force · JSON is the text format that replies and schemas are written in (not opened in this batch)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. Supplement6November2026: actual RFC8259 sections2–3 opened. RFC8259 is STD90; null is a literal JSON value. Earlier excerpt notes retain their historical scope.
- Market practice
OpenAPI Specification (Wikipedia) ↗ — Wikipedia · SmartBear donated the Swagger specification to the new OpenAPI Initiative under the Linux Foundation, and it was then renamed OpenAPI Specification; sources differ by a few weeks on the date, so none is taught (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
The Swagger Spec Is Reborn As Open API Definition Format (OADF) After Being Put Into Open API Initiative (OAI) (API Evangelist) ↗ — API Evangelist · A November 2015 post reports the donation of the Swagger specification to the OpenAPI Initiative (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Blog post dated 2015-11-05; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
OpenAPI vs Swagger: what's the difference between the two specs? (Mintlify) ↗ — Mintlify · OpenAPI 2.0 is semantically identical to Swagger 2.0; the specification was donated and renamed, and Swagger UI and Swagger Editor stayed SmartBear tool brands (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
OpenAPI tutorial using Swagger Editor and Swagger UI: Overview (I'd Rather Be Writing) ↗ — I'd Rather Be Writing · Swagger Editor is a browser tool for writing and checking an OpenAPI file, with a code pane and a live preview; Swagger UI turns a finished file into browsable, interactive documentation (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Upgrading from OpenAPI 3.0 to 3.1 (OpenAPI learning documentation) ↗ — OpenAPI Initiative · OpenAPI 3.1 is designed to be compatible with JSON Schema 2020-12, with a few differences (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Get started (JSON Schema) ↗ — JSON Schema organization · Builds a schema step by step: declare the type, define properties, then validate example data against the schema with a validator (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
API mocking with Prism (Nimble Compass) ↗ — Nimble · Prism is an open-source mock server that answers from an OpenAPI document and returns the examples in it by default; it is only as complete as the document (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Enforcing API correctness: automated contract testing with OpenAPI and Dredd (DEV Community) ↗ — DEV Community · Treats an OpenAPI document as a contract between an API and its users and uses it to check that the API behaves as promised (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
From Swagger to Real Tests: Where Most API Testing Falls Apart ↗ — DEV Community · r8a-devto-swagger-real-tests and r5d-devto-openapi-contract-dredd are blog posts, so this is practitioner view, not a standard. Search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Tester Advanced Level Test Automation Engineering sample exam answers, version 2.2 (copy hosted by the American Software Testing Qualifications Board) ↗ — American Software Testing Qualifications Board · The rationale for an improvement question says schema validation can be used in API testing but not in GUI testing (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. Version: Version 2.2.
- Market practice
ISTQB Certified Tester Advanced Level Test Automation Engineering (CTAL-TAE) Syllabus v2.0 ↗ — International Software Testing Qualifications Board (ISTQB) · Section 8.1.1 (TAE-8.1.1, K3): schema validation applied in API data analysis and database analysis, checking mandatory elements and types without one assertion each (mirror copy of the publisher PDF, version 2.0 of 3 May 2024, read in full text)
Primary publisher body opened and relevant sections read on 6 November 2026; selected-section reading, not a claim every page or external link was read. See docs/research/v16-testing-automation-literacy-audit-20261106.md for exact sections, version and limitations.
V52 additionally read actual publisher PDF7 November 2026: version 2.0,3 May 2024 front/introduction and all substantivechapters 1–8/29 learning objectives, throughprintedp 53 and selectedreferences. Not every appendix or cited book. §3.1.5 says interface substitution; Martin’s original calls it Interface Segregation. Preserve the source discrepancy separately. No unrestricted commercial image permission established.
- Official requirement
OpenAPI Specification 3.2.1 (10 September 2026) ↗ — OpenAPI Initiative · OAS3.2.1,published10September2026:4.24 Schema Object and2020-12 dialect; explicit type/required and value constraints; tool support separately verified (relevant primary passages opened6November2026).
Opened relevant primary passages on6November2026 via normal web search and document view. Published version and Schema Object4.24 opened. JSON Schema2020-12 default dialect; property/type/value constraints and optional format assertion. Publication is not evidence that any particular tool supports this version.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.