-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Milestone
Description
Story
We're currently using NoSQL query language to fetch data through the API endpoint /api/silo/{SILO_ID}/data?. To make the API more standard we need to change this endpoint and provide specific query parameters for that, like SUM, AVG, and COUNT.
Acceptance Criteria
GIVEN I have a table with data on Track
WHEN I send the following request /api/silo/{SILO_ID}/data?sum=field
THEN it returns me the sum of a field in various records
GIVEN I have a table with data on Track
WHEN I send the following request /api/silo/{SILO_ID}/data?avg=field
THEN it returns me the average of a field in various records
GIVEN I have a table with data on Track
WHEN I send the following request /api/silo/{SILO_ID}/data?count=true
THEN it returns me the number of records