A DropWizard project with 3 routes
How to:
-
Download project as a zip file and unzip it OR clone repo from terminal
-
Navigate to the project in terminal
-
CD into project
-
Run "java -jar target/hello-world-0.0.1-SNAPSHOT.jar server hello-world.yml" to start project
-
Terminal command options
a. "curl http://localhost:8080/hello-world" - returns "Hello! How are you today?"
b. "curl http://localhost:8080/plain-text" - returns "Hello! How are you today?"
c. "curl http://localhost:8080/hello-world-json" - returns JSON object {"id":number - number of times run,"content":"Hello! How are you today?"}