Make API Mocking Simple & Powerful

High-performance mock data server based on Spring Boot. Supports MockJS, reverse proxy, dynamic responses, encryption/decryption, accelerating frontend dev and API testing.

Core Features

πŸš€

Partial Mock & Reverse Proxy

Configure a proxy address. Mock only specific requests, while others are auto-forwarded to real backend services, drastically simplifying integration.

✨

Full MockJS Integration

Built-in MockJS support. Generate complex random JSON data with simple syntax to satisfy all UI display needs.

🎬

Multi-Scenario Management

Create multiple scenarios for the same API. Switch between test cases or environments with one click without interference, combining response statuses freely.

πŸ› οΈ

Dynamic & Script Engine

Generate responsive data dynamically using JavaScript. Built-in crypto functions (AES, RSA, MD5) smoothly handle complex business cases.

πŸ”—

Flexible Variables

Replace response content with request parameters. Echo data back easily using the {{request.params.id}} syntax.

🎯

Multi-Rule Matcher

Beyond path matching, precisely dispatch requests using multi-dimensional expression calculations over body, headers, and params.

πŸ‘₯

Multi-User & Permissions

Isolated data management for multiple users, with global visibility for admins. Reliable storage via H2 or MySQL.

πŸ“œ

History & Version Rollback

Automatically records history for response modifications. Supports version comparison and one-click rollback to prevent accidental overrides.

🌐

Async Fetch & External Libs

Native support for async/await to fetch third-party APIs for data aggregation. Dynamically load external JS libraries via require to securely handle complex encryption.

1-Line Quick Start

Ready out-of-the-box Windows/Linux/Docker deployment.

# Fast boot via Docker
docker run -d -p 9086:9086 fugary/simple-boot-mock-server:latest

# Default Accounts (Please change immediately)
Admin: admin / 12345678
User: mock / mock