SpringMVC RESTful-API pattern