Sample project that covers the following concepts:
We try to follow well-accepted REST principles with these examples. All operations performed on this user entity are through the same endpoint and use the request method as a determiner for the service to call...
GET http://localhost:8080/user/3
POST http://localhost:8080/user
PUT http://localhost:8080/user
DELETE http://localhost:8080/user/3
If an endpoint is triggered that does not have a mapping, the DefaultController
will respond with an error.
mvn clean test
http://localhost:8080/user
will return an initial response.See org.royrusso.mvc.controller.UserController
for more REST endpoints.