Mini webservice with spring-boot … … with toggle feature using ToggleZ Run and test it $ ./gradlew run # […] And then go to http://localhost:8080/todos <- should work http://localhost:8080/date <- should not work (that's what you need to make work conditionnaly)