Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the Silo data endpoint #546

Open
jefmoura opened this issue Jul 31, 2018 · 0 comments
Open

Refactor the Silo data endpoint #546

jefmoura opened this issue Jul 31, 2018 · 0 comments

Comments

@jefmoura
Copy link
Member

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

@abarquero abarquero added this to the Tola Sprint 16 milestone Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants