anitab-org / anitab-org/stem-diverse-tv
Feat: Add PUT/PATCH video endpoint
- Langage dominant
- Python
- Étoiles
- 13
- Forks
- 48
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Is your feature request related to a problem? Please describe.
We need to add an endpoint for updating the video.
### Describe the solution you'd like
Update video (PUT or PATCH method). Request payload:
```json
{
"title": "string",
"url": "string",
"date_published": "2021-01-14",
"source": "string",
"channel": "string",
"duration": 0,
"archived": false,
"free_to_reuse": true,
"authorized_to_reuse": true,
"category_sections": [
1
],
"authors": [
0,1
]
}
```
If the video doesn't exist, return 404. If the video is updated, return an updated video response or proper message. URL: `/videos/{id}`.
### Describe alternatives you've considered
N/A
### Additional context
The user must be authorized to perform this action
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.