CodeYourFuture / CodeYourFuture/Full-Stack-Project-Assessment

Sorting the video recommendations

未关闭
#486 0 条评论 0 个 reaction 已指派 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 摘要。