This service collects usage statistics and logs a user's actions to later improve the application. This service exports API calls to collect the data and contains some internal APIs to read the data:
- POST request to /log logs a user's actions (the id of a user is set in the body of the request)
- GET request to /log?from=?&to=? works only from the internal network and returns the collected data for the period specified
This microservice doesn't conform clearly to the REST principles. It's useful for microservices that provide a full set of methods to add, modify, and remove the data, but for other services, it is excessively restrictive. You don't have follow a clear REST structure for all of your services, but it may be useful for some tools that expect it.