CodeYourFuture / CodeYourFuture/Full-Stack-Project-Assessment

Sorting the video recommendations

オープン
#486 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
:framed_picture: Frontend 🏕 Priority Mandatory 📅 Week 4 🔌 Backend
主要言語
JavaScript
スター
9
フォーク
352
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。