/web-services

Primary LanguageGoMIT LicenseMIT

Web Service

Mount and start

docker-compose up -d

To import from data.csv upon start, set:

MIGRATE_ON_START=true

in the docker-compose file.

Note: the data.csv need to be located at the root of the repo.

API

  • Simple Queries
curl localhost:8080/unique-users
  • With filters
curl localhost:8080/unique-users?device=1,os=2
  • Example response
{
  count: 123
}