Docs menu · Overview
APIMock documentation
APIMock docs
Everything you need to build hosted mock APIs, fake REST CRUD endpoints, and test error states before the backend exists: dynamic responses, OpenAPI/Swagger imports, and fault injection.
Updated
Getting started
Build mocks
Response templates
Generate dynamic mock responses from request headers, parameters, and safe Faker generators for realistic test data.
Response variants
Return different mock responses from one route by header, query, path, cookie or body field, by weight, or on demand with the X-APIMock-Variant header.
Resources
Declare stateful resources and get instant, persistent REST CRUD endpoints with pagination, filtering, seeds, and reset — a hosted json-server alternative.
OpenAPI import
Import a Swagger or OpenAPI spec into mock endpoints that serve its examples, with CRUD paths as live Resources, request validation and re-import.