cosmicds / cds-api

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

Add endpoint for returning the list of students in a given class #137

Closed Carifio24 closed 1 week ago

Carifio24 commented 1 week ago

This PR adds a simple /classes/roster/<class ID> endpoint that returns a list of all of the students in the specified class.

Carifio24 commented 1 week ago

Something that we probably want is some way to verify that the request is coming from the educator in charge of the class - maybe pass some identifying tag for the educator in a header or something?

I don't think it's pressing since the API is not publicly usable (as we don't currently give out keys), but that may change someday.