Skip to content

A java(springboot) port of the venerable httpbin.org HTTP request & response testing service.

License

Notifications You must be signed in to change notification settings

sgoeschl/springboot-httpbin

 
 

Repository files navigation

springboot-httpbin

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.

usage

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

original httpbin openapi

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

ref

About

A java(springboot) port of the venerable httpbin.org HTTP request & response testing service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 91.6%
  • Shell 7.3%
  • Other 1.1%