-
-
Notifications
You must be signed in to change notification settings - Fork 357
Open
Labels
πΌοΈ Frontendπ Priority Mandatoryπ
Week 4Assigned during Week 4 of this moduleAssigned during Week 4 of this moduleπ Backend
Description
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 data
/?order=asc
and
/?order=desc
Acceptance criteria
- When you receive
ascthe videos should be returned in ascending order by the number of votes. i.e. starting with the lowest number of votes. - When you receive
descthe 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.
- Users can select an ordering in the frontend
Example
Please check https://lvl499c--cyf-fsa-solution.netlify.app for an example solution of this level
Metadata
Metadata
Assignees
Labels
πΌοΈ Frontendπ Priority Mandatoryπ
Week 4Assigned during Week 4 of this moduleAssigned during Week 4 of this moduleπ Backend
Type
Projects
Status
π Backlog