cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Allow getting number of students who have finished Hubble measurements #125

Closed Carifio24 closed 1 month ago

Carifio24 commented 1 month ago

This PR adds a GET /hubbles_law/class-measurements/students-completed/<student-id>/<class-id> endpoint that allows finding out how many of a student's classmates have completed their Hubble measurements, without getting the measurements themselves. We prevent caching of this endpoint's responses so that it can be repeatedly queried to get live results (e.g. in stage 4 of the Hubble story).