Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting the video recommendations #486

Open
4 tasks
Dedekind561 opened this issue Apr 9, 2024 · 0 comments
Open
4 tasks

Sorting the video recommendations #486

Dedekind561 opened this issue Apr 9, 2024 · 0 comments

Comments

@Dedekind561
Copy link
Contributor

Dedekind561 commented Apr 9, 2024

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 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.
  • 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

@Dedekind561 Dedekind561 added 🔌 Backend 📅 Week 4 Assigned during Week 4 of this module and removed 📅 Week 2 Assigned during Week 2 of this module labels Apr 9, 2024
@Dedekind561 Dedekind561 changed the title Delete a video recommendation Users can sort the video recommendations Apr 9, 2024
@Dedekind561 Dedekind561 changed the title Users can sort the video recommendations Sorting the video recommendations Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant