API Design

API Mocking

/eɪ piː aɪ ˈmɒkɪŋ/

Definition

Creating a simulated API that returns predefined responses — used by frontend teams to develop before the real API is ready.

Example in context

"MSW (Mock Service Worker) intercepts fetch calls in the browser — the frontend team tests with mocked API responses."

Related terms

Practice this term

Master API Mocking in context by working through exercises in the API Design module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.