rfcx / rfcx-api

Core, Media/Assets and MQTT APIs
https://api.rfcx.org/docs/
Apache License 2.0
0 stars 0 forks source link

Create `GET /detections/summary` and `GET /classifier-jobs/{jobId}/best-detections/summary` #592

Closed grindarius closed 4 months ago

grindarius commented 5 months ago

Is your feature request related to a problem? Please describe. ~~Currently the GET /classifier-jobs/{id}/summary is being used in this given UI (link below). https://www.figma.com/file/FGnP9kAFLDmraAFJf8OBAG/CNN-Roadmap?type=design&node-id=97-857&mode=design&t=zgf5wKqMLTe1cJoj-4~~

image

We would also like to use this API for this portion of the UI https://www.figma.com/file/FGnP9kAFLDmraAFJf8OBAG/CNN-Roadmap?type=design&node-id=337-5942&mode=design&t=zgf5wKqMLTe1cJoj-4

We are creating 2 new endpoints to serve this data from the Core API. image

Then we can call this API to just grab information about counts

Describe the solution you'd like We would like to create 2 new endpoints to serve information about the counts of each validation status based on given query parameters. The 2 new endpoints are

The return type of the API will be

{
  "unreviewed": 1815,
  "rejected": 122,
  "uncertain": 0,
  "confirmed": 18
}

This task will able to be closed when these 2 subtasks are finished

Describe alternatives you've considered none

Additional context none