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 #30

Open
4 tasks done
aishaathmanlali opened this issue May 20, 2024 · 0 comments
Open
4 tasks done

Sorting the video recommendations #30

aishaathmanlali opened this issue May 20, 2024 · 0 comments
Assignees
Labels

Comments

@aishaathmanlali
Copy link
Owner

aishaathmanlali commented May 20, 2024

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

@aishaathmanlali aishaathmanlali transferred this issue from aishaathmanlali/Coursework-Planner Jun 8, 2024
@aishaathmanlali aishaathmanlali self-assigned this Jun 22, 2024
@aishaathmanlali aishaathmanlali moved this from 📋 Backlog to 🏗 In progress in FULL-STACK ASSESSMENT PLANNER Jun 22, 2024
@aishaathmanlali aishaathmanlali moved this from 🏗 In progress to ✅ Done in FULL-STACK ASSESSMENT PLANNER Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant