News for hackers. Stuff that matters.
Re:How to (and how not to) design REST APIs by stickfigure on Wednesday November 01, 2023 @05:23PM (#38105517)
Yes, I would expect GET /students to return all of the students (or at least, all of the students visible to me). Typically with query parameters for filtering:

    GET /students?min_age=20
Alternatively, `students` might be a collection attribute on another resource:

    GET /classes/{class_id}/students

There are no comments on this comment yet.