Implement an Web service which provides an HTTP API for acessing some analytic metrics.
Import provided data into database and implement an web service which will calculate and send back some analytical metrics based on input arguments via some defined API.
Implementation should be based on Layered Architecture. Application should have Presentation, Business and Data Access Layers.
Any relation database.
TODO....
Spring framework, Struts2
API should have following end-points
- DAU (Daily active users)
- Retention
API should be implemented according to REST rules.
API accepts list of dates in dd/mm/yyyy format and returns DAUs for that days.
API accepts two arguments. One is retention type. Accepted values are : "Day1", "Day7", "Day40". The second one is date in dd/mm/yyyy format. Retention should be calculated starting from that day. Returns the retention for that day.