I have 2 UI screens. the first UI screen only displays high level summary such as class, number of students in class.
i have details screen that displays the more information such as class, number of students, students information in class etc.
what is the best practice to design such API for consumption via UI - can I call it as /summary, /details API ? or follow REST convention and call it as /class ( GET class details ) and pass appropriate filters to receive summary vs details i.e /class?filter=summary|details
please advise.