How dotMock Works

Understanding the architecture and flow of dotMock's cloud-based API mocking platform.

The Big Picture

From Idea to Live API in Seconds

dotMock provides a powerful, cloud-based solution for creating and managing API mocks. When you create a mock API in dotMock, it's instantly available via a unique URL atyour-api.mock.rest that your applications can use just like a real API.

Core Architecture

Built for speed, reliability, and global scale

Cloud Infrastructure

dotMock runs on a globally distributed cloud infrastructure, ensuring low latency and high availability for your mock APIs anywhere in the world.

Mock Engine

Our intelligent mock engine processes incoming requests, matches them against your defined rules, and returns appropriate responses in milliseconds.

Real-time Updates

Changes to your mock APIs are deployed instantly. No build process, no deployment delays - your updates are live as soon as you save them.

Security & Isolation

Each project runs in an isolated environment with its own unique subdomain at.mock.rest, ensuring complete separation and security.

Request Flow

From request to response in milliseconds

1

Client Makes Request

Your application sends an HTTP request to your dotMock endpoint URL atyour-api.mock.rest

2

Request Analysis

dotMock analyzes the request method, path, headers, query parameters, and body content

3

Rule Matching

The engine matches the request against your defined endpoints and response rules

4

Response Generation

Based on your configuration, dotMock generates the appropriate response using dynamic templates

5

Response Delivery

The response is sent back to your application with configured headers and status codes

Why Choose dotMock?

Everything you need for powerful API mocking

Zero Configuration

No servers to set up, no configuration files to manage. Everything is handled through our intuitive UI.

Instant Deployment

Your mock APIs are available immediately at a unique .mock.rest URL as soon as you create them.

Smart Matching

Advanced request matching based on paths, methods, headers, query parameters, and request bodies.

Dynamic Responses

Generate different responses based on request data using Go templates, simulate delays, errors, and complex scenarios.