A java(springboot) port of the venerable httpbin.org HTTP request & response testing service.
Inspired by httpbin go-httpbin and java-httpbin.
Special thanks fastapi-httpbin and openapi-generator.
docker run -p 8080:8080 dyrnq/springboot-httpbin
env | jvm options | application args |
---|---|---|
SERVER_SERVLET_CONTEXT_PATH | -Dserver.servlet.context-path | --server.servlet.context-path |
SPRING_MVC_SERVLET_PATH | -Dspring.mvc.servlet.path | --spring.mvc.servlet.path |
OPENAPI_SPRINGBOOT_HTTPBIN_BASE_PATH | -Dopenapi.springboot-httpbin.base-path | --openapi.springboot-httpbin.base-path |
JAVA_OPTS | ||
JAR tomcat, jetty, undertow, reactive |
e.g.
docker run -p 8080:8080 -e JAR=undertow -e JAVA_OPTS='-Xms1g -Xmx1g' dyrnq/springboot-httpbin
options use precompile jar
curl -O -fSL -# https://github.com/dyrnq/springboot-httpbin/releases/download/v0.0.1/springboot-httpbin-tomcat.jar
java -jar springboot-httpbin-tomcat.jar
also see spring-boot/appendix/application-properties
See also
website | source | docker |
---|---|---|
httpbin.org | postmanlabs/httpbin | docker run -p 80:80 kennethreitz/httpbin |
httpbin.rs | duskmoon314/httpbin-rs | |
httpbingo.org | mccutchen/go-httpbin | docker run -P mccutchen/go-httpbin |
gaul/java-httpbin | ||
SakigamiYang/httpbin4j |