Spring Boot Test Stub.
Simple.
curl -fsSL "$(
curl -s "https://api.github.com/repos/ivasilyev/test-stub-spring-boot/releases/latest" \
| grep -E '\"browser_download_url\":.*\.jar' \
| sed -E 's/.*"([^"]+)".*/\1/'
)" -o "test-stub-spring-boot.jar"
JAVA_HOME="/path/to/java/home" \
"/path/to/java/bin" \
-Xms1024m \
-Xmx2048m \
-jar "test-stub-spring-boot.jar"
http://hostname:10000/endpoint/ui
curl "http://hostname:10000/endpoint"
curl \
--request POST \
--data-binary '{"delayMs":555}' \
--header 'Content-Type: application/json' \
"http://hostname:10000/endpoint/api/set-delay"
curl "http://hostname:10000/actuator/prometheus"