Skip to content

Refactor the Silo data endpoint #546

@jefmoura

Description

@jefmoura

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions