What an API is
An API is the menu a program offers to other programs. Testers use it to check the product below the screen, where results are quicker to read and harder to hide.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a restaurant menu. You choose from fixed items, and the kitchen does the rest. You never see the kitchen, and you do not need to know how the soup is made. If you ask for something that is not on the menu, you are told no.
Daily List is a to-do list app. It has a website and a phone app, and both show the same lists. Tom, the tester, wonders how two different programs can use one set of lists.
The answer is a menu that the server offers. It is called an . An endpoint is a location where this web API accepts requests. The method and request details identify the operation; the same address can support more than one operation. One example asks for the tasks of list 12. The website and the phone app are both client apps, which means programs that use an API. Both order from the same menu.
A does not reach into the kitchen, but sends a request for an item and gets back a response. Tom can inspect the response without a screen, then compare it with the agreed rule. The response is evidence, not its own proof of correctness.
The picture has a limit. A restaurant menu is written for people. An API contract is written for programs. Whether a misspelled or extra value is rejected, ignored or handled another way depends on that contract.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 3 in this section
- endpoint
- the final point, or the system sending or receiving
- correctness
- being free of mistakes
- misspelled
- spelled wrongly
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 Checking a product by ordering from the same menu the apps use, and reading what comes back.
- Pick an endpoint
- Send the request
- Read the reply
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Restaurant menu | API |
| One item on the menu | Endpoint |
| Guests who order | Client apps |
WHERE THIS PICTURE STOPS
- A menu is written for people, while an API exposes a declared programmatic contract.
- A request outside the stated contract may be rejected, ignored or handled differently according to that contract.
- A restaurant has one menu per place. A product may have many APIs.
HOOK
Order from the menu yourself.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
When a screen looks wrong, usually order from the menu yourself: send the request to the endpoint and compare the reply with the screen.
| In the trick | What it stands for |
|---|---|
| order from the menu | Send a request for an item and get back a response |
| compare with the screen | Compare the actual response, client request and screen with the declared rule |
A response alone does not establish correctness or identify the faulty layer without the relevant rule and context.
TELL A FRIEND
A restaurant menu lets guests ask the kitchen for set items. An lets programs ask a server for set things.
OFTEN MIXED UP WITH How the web works, for testers. The web lesson shows a client asking a server. This lesson names the menu the client asks from.
PRACTISE AND KEEP
Sources for this topic — 12 sources
- Market practice
Introduction to web APIs (Mozilla developer docs) ↗ — Mozilla (MDN Web Docs) · An API is a set of programming features that hides harder code behind simpler ones (search excerpt, page not opened; source staged by the business analysis batch 13)
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
Overview of the HyperText Transfer Protocol (HTTP) (Mozilla developer docs) ↗ — Mozilla (developer documentation) · The browser starts each request and the server returns a response; this is the base that a web API uses (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. 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
Simple Object Access Protocol (SOAP) Version 1.2 Part 0: Primer, Second Edition (World Wide Web Consortium) ↗ — World Wide Web Consortium (W3C) · A SOAP message is an envelope with an optional header and a required body; SOAP 1.2 does not depend on the Web Services Description Language (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Second Edition, 27 April 2007. 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
Introduction to GraphQL (graphql.org) ↗ — GraphQL Foundation · GraphQL is a query language for APIs; the client asks for the fields it needs; a service usually has one address; the three operation kinds are query, mutation and subscription (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. 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
Representational State Transfer (REST) glossary entry (Mozilla developer docs) ↗ — Mozilla (MDN Web Docs) · Glossary entry for Representational State Transfer (REST) (page not opened; staged by the business analysis batch 13)
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
Simple Object Access Protocol (SOAP) versus Representational State Transfer (REST) 101: understand the differences (SoapUI) ↗ — SmartBear (SoapUI) · SOAP is a protocol with strict XML rules; REST is a looser style that usually uses JSON (search excerpt, page not opened; vendor page)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. 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
Introduction to gRPC (grpc.io) ↗ — Cloud Native Computing Foundation (gRPC project) · gRPC defines a service in a proto file with protocol buffers and has four kinds of call, including streaming (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. 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: 8 November2026: primary Introduction Overview/Working with Protocol Buffers read. Protobuf is the default, alternatives exist; .proto/stubs apply to this selected protobuf example, not every serialization.
- Market practice
WebSocket API (WebSockets) (Mozilla developer docs) ↗ — Mozilla (developer documentation) · A WebSocket keeps a live two-way session open between browser and server (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. 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.
- Official requirement
RFC 9110 — HTTP Semantics ↗ — IETF · RFC9110 selected HTTP role/representation/method sections actually read in V72; method semantics and target resource are distinct. Business visibility rules remain explicitly synthetic.
Internet Standard, June 2022, obsoleting RFC 7230 through 7235.
Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.
- Official requirement
SOAP Version 1.2 Part 1: Messaging Framework (Second Edition) ↗ — World Wide Web Consortium · SOAP1.2 Part1 SecondEdition,27April2007: completeIntroduction and5.1–5.3 with children actually read. SOAP1.2 is no longer an acronym; optionalHeader precedes mandatoryBody. No universal security/reliability/WSDL guarantee.
Original 18 October 2026 record was based on search excerpts. On 7 November 2026 the W3C title, abstract and Status of This Document were opened to verify the selected Second Edition Recommendation. This is a publication-status and terminology correction, not certification of the complete specification, later errata, a particular implementation or all protocol bindings.
8 November2026 bounded primary update: 8 November2026 actual SOAP1.2Part1 SecondEdition27April2007 selected Introduction historicalname, processing/targeted mustUnderstand, §§5.3–5.4 CodeQName/ReasonText xml:lang/Table4 read. Not fullspecification or installedimplementation certification.
- Market practice2000 dissertation
Architectural Styles and the Design of Network-based Software Architectures — Chapter 5 REST ↗ — Roy Thomas Fielding · Fielding2000 dissertation chapter5: complete5.1 and5.1.1–5.1.8 actually read; architectural constraints, not a mandatory JSON representation format or a loose protocol.
Bounded primary-source reading recorded in V72. Synthetic Daily List rules and verdicts are editorial fixtures, not publisher business facts. No source figures reproduced or modified.
- Official requirementSeptember 2025
GraphQL Specification — September 2025 ↗ — GraphQL specification project · GraphQL September2025 edition: complete2.4Operations and7.1ResponseFormat with all children actually read. Selected data can coexist with execution errors; HTTP transport draft not reviewed.
Bounded primary-source reading recorded in V72. Synthetic Daily List rules and verdicts are editorial fixtures, not publisher business facts. No source figures reproduced or modified.
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.