TOPIC 04/6212 MINNOT STARTED

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.

  1. Pick an endpoint
  2. Send the request
  3. Read the reply
Three moves

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
Restaurant menuAPI
One item on the menuEndpoint
Guests who orderClient 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.

What each part of the trick stands for
In the trickWhat it stands for
order from the menuSend a request for an item and get back a response
compare with the screenCompare 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
  1. 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)

    Developer documentation. Says an API is a set of programming features that hides harder code behind simpler ones. Search excerpt only. · Checked 2026-10-18

    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.

  2. 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)

    Per the search excerpt, the web is a client-server protocol: the browser starts each request and the server replies. A request carries a method, a path, a version, headers and sometimes a body. A response carries a version, a status code, headers and sometimes a body. Loading a page is a chain of requests. · Checked 2026-10-18

    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.

  3. 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)

    Per the search excerpt, a tutorial: a message is an envelope with an optional header and a required body. Simple Object Access Protocol (SOAP) 1.2 does not depend on the Web Services Description Language. · Checked 2026-10-18

    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.

  4. 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)

    Per the search excerpt, GraphQL is a query language for APIs. The client asks for the fields it needs and gets just those. A service usually has one address, and the three operation kinds are query, mutation and subscription. · Checked 2026-10-18

    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.

  5. 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)

    Developer glossary. Defines REST as a style of web services built on addresses and a small set of verbs. Search excerpt only. · Checked 2026-10-18

    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.

  6. 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)

    Per the search excerpt, Simple Object Access Protocol (SOAP) is a protocol with strict Extensible Markup Language (XML) rules and Representational State Transfer (REST) is a looser style that usually uses JSON. A vendor page. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  7. 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)

    Per the search excerpt, a service is defined in a proto file with protocol buffers. There are four kinds of call, including streaming, and a client uses a stub that forwards calls to the server. · Checked 2026-11-08

    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.

  8. 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)

    Per the search excerpt, a WebSocket keeps a live two-way session open between browser and server, so messages can be sent and received without asking each time. · Checked 2026-10-18

    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.

  9. 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.

    The definition of what an idempotent request method is, alongside safe methods, the status-code semantics an API contract is built on, and conditional requests.

    Used here for the systems-design questions a Payments Software Engineer and a Payments Solution Architect are asked, where the question turns on HTTP's own guarantees rather than on a scheme's rules. · Checked 2026-08-18

    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.

  10. 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.

    SOAP Version 1.2 Part 1: Messaging Framework (Second Edition), W3C Recommendation of 27 April 2007. Describes an XML-based extensible messaging framework and message constructs, with bindings to different underlying protocols. Use the published SOAP name without presenting the older expanded acronym as its current title. · Checked 2026-11-08

    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.

  11. 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.

    Complete5.1 with5.1.1–5.1.8 and actual titlepage read. Not whole dissertation/5.2 details; historical platform examples not current recommendations. Figures not pixel/rights reviewed; all-rights-reserved titlepage does not permit assumed commercial restyling. · Checked 2026-11-07

    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.

  12. 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.

    Complete2.4Operations and7.1ResponseFormat,all children and examples actually read. Not entire specification or HTTP transport draft; no all-implementation/current-release certification beyond this explicit edition. · Checked 2026-11-07

    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.