You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you return all of the videos from the /api/videos endpoint your API should support an optional query parameter that will change the ordering of the data
/?order=asc
and
/?order=desc
Acceptance criteria
When you receive asc the videos should be returned in ascending order by the number of votes. i.e. starting with the lowest number of votes.
When you receive desc the videos should be returned in descending order by the number of votes. i.e. starting with the highest number of votes.
If no parameter is passed, the order should be by ID.
From Full-Stack-Project-Assessment created by Dedekind561: CodeYourFuture#486
Description
When you return all of the videos from the
/api/videos
endpoint your API should support an optional query parameter that will change the ordering of the dataand
Acceptance criteria
asc
the videos should be returned in ascending order by the number of votes. i.e. starting with the lowest number of votes.desc
the videos should be returned in descending order by the number of votes. i.e. starting with the highest number of votes.Example
Please check https://lvl499c--cyf-fsa-solution.netlify.app for an example solution of this level
The text was updated successfully, but these errors were encountered: