AWS re:Invent happy hour: Dec 1, 6 PM PST at MGM Grand RSVP

API mocking guides

API mocking: build realistic dependencies without hand-written fixtures

Replace unavailable, expensive, or unstable dependencies with mocks that behave like the real service. Start with the basics, compare the tools, then build from recorded traffic.

Start here

Start with the API mocking basics

Choose what you need to do

All API mocking articles

Top 8 API Mocking Tools and Methodologies

Compare API mocking tools. Choose function stubs, examples, or recorded network responses, and keep fixtures aligned with the intended contract.

How to Get Started with GoMock Playbook

Use GoMock with small Go interfaces, pinned mock generation, and runnable tests. Learn when an HTTP test server or real dependency check is needed.

Using Python MockServer for API Testing

Use Python requests with MockServer’s REST API to create expectations, test failure responses, verify calls, and reset state between tests.

Create API mocks from real traffic

Record your application once, then run its dependencies locally without maintaining fixtures by hand.