mvn clean jetty:run
mvn clean package
The WAR file will be created in the target
directory. Deploy it to your favorite Java application server (Tomcat, WildFly, etc.).
curl http://localhost:8000/api/health
curl http://localhost:8000/api/users
curl http://localhost:8000/api/users/1
curl -X POST http://localhost:8000/api/users \
-H "Content-Type: application/json" \
-d '{"name":"John Doe","email":"john@example.com"}'
curl -X PUT http://localhost:8000/api/users/1 \
-H "Content-Type: application/json" \
-d '{"name":"John Updated","email":"john.updated@example.com"}'
curl -X DELETE http://localhost:8000/api/users/1
mvn clean
mvn install
mvn jetty:run