API checks and contract-change review with AI
Ask an assistant for runnable API checks that each test status, shape and one business rule, and for a table of changes between two spec versions. Then prove every claim yourself.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a clerk who copies the form exactly but cannot tell you what the form is for. Picture a clerk who copies a form so neatly that you cannot see the join. Every box is filled. But ask what the form is for, and the clerk shrugs. The clerk knows the shape, not the point.
Daily List is a to-do list app. It has an application programming interface (), which is the way other programs, such as the phone app, ask it for things. Nina, the product owner, has a written description of it. Tom, the tester, gives that description to an (AI) assistant and asks for checks.
The assistant copies the shape perfectly. It writes forty checks, and every one says only "the answer should be status 200". All forty pass. They would notice a wrong status, but would miss a wrong payload returned with status 200.
The picture has a limit. A clerk would eventually say "I do not know what this form is for". An assistant keeps writing neat boxes.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named here are made up.)
PLAIN WORDS · 1 in this section
- payload
- the real content a message carries, not its wrapper
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 Using an assistant to draft runnable checks and a table of spec changes, then retaining useful status coverage, adding semantic assertions and checking compatibility against actual consumer expectations.
- Give the spec excerpt
- Ask for status, shape and rule
- Keep status coverage; add semantic assertions
- Prove each breaking claim
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A clerk copying a form exactly | The assistant copying the shape of the spec |
| A form with every box filled | A check suite that is all green |
| Asking what the form is for | Adding a business rule to each check |
| Trying an old key in a new lock | Sending an old request to the new version |
WHERE THIS PICTURE STOPS
- A clerk may ask what the form is for. An assistant keeps copying boxes.
- A copied form is one page. A check suite can hold many weak checks that look like real coverage.
- An old key can be tried in a new lock by anyone. People and authorised tools can exercise known old callers; unprovided consumer assumptions remain unknown.
HOOK
Status coverage does not establish payload correctness.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
The assistant copies the shape of the spec; you add a to each check. Then try an old request on the new version.
| In the trick | What it stands for |
|---|---|
| Shape | Copying the shape of the spec |
| Point | Adding a business rule to each check |
| Old key | Sending an old request to the new version |
TELL A FRIEND
A clerk copies the form perfectly. You ask what the form is for, and you try an old key in the new lock.
OFTEN MIXED UP WITH Designing API tests. The test design lesson teaches how to choose cases by hand. This one adds an assistant that drafts them and a habit of adding assertions for the relevant payload and side-effect faults.
Sources & standards — 6 sources
- Market practice
APITestGenie: generating web API tests from requirements and API specifications with language models (arXiv 2604.02039) ↗ — arXiv (University of Porto and partners) · A research tool generates API tests from requirements and an OpenAPI file; the authors say success depended on how complex the API was and how detailed the requirements were, and that a person must still check the scripts (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, 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
AI writes your API tests now, here is the bug it introduces (DEV Community post) ↗ — DEV Community (practitioner post) · Argues that a model reads the live answer and writes checks around it, so a wrong answer can become the expected one (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, 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
Turn an OpenAPI specification into tests beyond schema coverage (OneUptime blog) ↗ — OneUptime · Pairs each good test with a bad one, sends one deliberate fault at a time, asserts the error body as well as the status, and checks that a refused request wrote nothing (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, 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
oasdiff (CodeRabbit documentation) ↗ — CodeRabbit · A review tool runs a structural comparison of two OpenAPI files on a changed pull request and reports breaking changes as review comments (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, 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
RFC9110 HTTP semantics, selected response rules ↗ — IETF · June2022; §§6.4.1/9.3.2/15.3.5 actual canonical primary text read7November2026. HEAD/204 no-content response rules; no claim whole7447-line standard read.
June2022; §§6.4.1/9.3.2/15.3.5 actual canonical primary text read7November2026. HEAD/204 no-content response rules; no claim whole7447-line standard read.
- Market practice
OpenAPI3.1.0 Response Object ↗ — OpenAPI Initiative · 15February2021 edition; §§4.8.16–4.8.17 read7November2026,including no-return-value response. Version pinned, not claimed newest.
15February2021 edition; §§4.8.16–4.8.17 read7November2026,including no-return-value response. Version pinned, not claimed newest.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Market practice
APITestGenie: generating web API tests from requirements and API specifications with language models (arXiv 2604.02039) ↗ — arXiv (University of Porto and partners) · A research tool generates API tests from requirements and an OpenAPI file; the authors say success depended on how complex the API was and how detailed the requirements were, and that a person must still check the scripts (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, 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
AI writes your API tests now, here is the bug it introduces (DEV Community post) ↗ — DEV Community (practitioner post) · Argues that a model reads the live answer and writes checks around it, so a wrong answer can become the expected one (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, 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
Turn an OpenAPI specification into tests beyond schema coverage (OneUptime blog) ↗ — OneUptime · Pairs each good test with a bad one, sends one deliberate fault at a time, asserts the error body as well as the status, and checks that a refused request wrote nothing (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, 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
oasdiff (CodeRabbit documentation) ↗ — CodeRabbit · A review tool runs a structural comparison of two OpenAPI files on a changed pull request and reports breaking changes as review comments (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, 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.
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.