Minimal Drogon-based mock server providing a handful of JSON endpoints for local testing.
GET /returns a JSON message indicating the server is running.GET /health,/health/live,/health/readyexpose basic health probes.GET /echoresponds with the request method, path, and query parameters as JSON.POST /echoechoes the request body and mirrors theContent-Typeheader when present.
- C++17 compatible compiler
- CMake 3.16 or newer
- Drogon library available on the system
mkdir build && cd build
cmake ..
make
./drogon_mock_serverThe server listens on port 8080 by default. Use curl or any HTTP client to exercise the endpoints.
compile_commands.json is generated in the build directory and symlinked to the project root after each build to assist clangd and other tooling.