Found this content helpful? Log in or sign up to leave a like!

add `desc` or `asc` to a few api calls that are already sorted by date\time\index such as `due_at`

jsimon3
Community Participant

A case for this argument:
I live in thee K-12 realm which means we have way too many assignments...
which means that at times a simple last 10 assignments of a course question(last 10 date wise) will take us 300 assignments to answer
Solution for this example in particular:
I would love to make this modified version of an assignment call:

.../users/self/courses/${course.id}/assignments/?order_by=due_at&order=desc&per_page=100`

the modified version of this call is the addition of the order=desc 
order
Determines the order of the assignments with order_by defined. Defaults to “position”.


Allowed value desc ,asc
Ignored unless the order_by is defined in the call

IF this were implemented(in the case example) I can reduce the call to  &per_page=10 and the total call resources would be reduced from 300+ to 10

Labels (2)