Url: https://api.triangl.io/dashboard-service/
Full API Documentation: https://api.triangl.io/dashboard-service/swagger-ui.html
Place in the Infrastructure: https://github.com/codeuniversity/triangl-infrastructure
- Get amount of visitor count per requested timeslice with POST /visitors/count
- Get dwell time time per requested area with POST /visitors/areas/duration
- Get average visitor count per time per day with POST /visitors/byTimeOfDay/average
This Service is an Endpoint for the Dashboard to get statistics of the Visitors. It is connected to the Google Serving SQL database.
- The /visitors/byTimeOfDay/average route is computing the visitors per time of day per weekday. One thing to note here is that the the whole service uses timestamps in the ISO 8601 format. Therefore, to count right the service would need to know the timestamp of the requesting dashboard because Monday in Los Angeles starts 14 hours earlier than Monday in Shanghai.
-- ToDo --
-- No special Tools yet --
The following Environment variables are need for this service:
GOOGLE_APPLICATION_CREDENTIALS={pathToGoogleKeyFile.json}
SPRING_DATASOURCE_PASSWORD={password}
SPRING_DATASOURCE_USER={user}
-
With Gradle
GOOGLE_APPLICATION_CREDENTIALS=/path/to/google/key/file.json SPRING_DATASOURCE_PASSWORD={password} SPRING_DATASOURCE_USER={user} ./gradlew bootRun