anitab-org / anitab-org/stem-diverse-tv

Feat: Add PUT/PATCH video endpoint

未关闭
#100 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Category: Coding Open Source Hack Status: Available Type: Enhancement
主要语言
Python
星标
13
派生
48
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。