CodeYourFuture / CodeYourFuture/Full-Stack-Project-Assessment

Sorting the video recommendations

Abierto
#486 0 comentarios 0 reacciones 0 asignados Ver en GitHub
:framed_picture: Frontend 🏕 Priority Mandatory 📅 Week 4 🔌 Backend
Lenguaje dominante
JavaScript
Estrellas
9
Forks
352
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.