MockServer
by ATH Infosystems
Version 5.15.0 + Free Support on Ubuntu 26.04
MockServer is a free and open-source API mocking and service virtualization tool that enables developers to simulate HTTP and HTTPS services, create mock APIs, proxy requests, and record API interactions through a lightweight server. Built in Java, MockServer helps developers test applications without depending on live backend services by allowing custom request matching and configurable responses. It is widely used for API development, automated testing, continuous integration (CI/CD), microservices, and integration testing environments.
Key Features of MockServer:
- Creates mock HTTP and HTTPS APIs for application development and testing.
- Supports request matching based on paths, headers, query parameters, cookies, and request bodies.
- Returns configurable mock responses with custom status codes, headers, and payloads.
- Acts as an HTTP/HTTPS proxy for forwarding and recording requests.
- Records and verifies API requests during automated testing.
- Provides REST and Java APIs for managing expectations programmatically.
- Supports JSON, XML, plain text, and binary payloads.
- Runs as a standalone Java application, Docker container, Maven plugin, or embedded library.
- Integrates with CI/CD pipelines and popular testing frameworks.
- Open-source and actively maintained with regular updates.
MockServer Usage:
$ sudo su $ apt update $ cd /opt $ ps -ef | grep mockserver # Check if MockServer is listening: $ ss -tulnp | grep 1080 # Open MockServer Endpoint: $ http://YOUR_SERVER_IP:1080 # Check MockServer Version: $ java -jar /opt/mockserver.jar -version # View MockServer Logs: $ tail -f /opt/mockserver.log
Disclaimer:
MockServer is an independent open-source API mocking and service virtualization tool developed and maintained by its open-source community. It is not affiliated with or endorsed by Oracle, Java, Docker, or any third-party software, cloud provider, or API platform mentioned for compatibility or deployment purposes.