bangumi / bangumi/server

[Feature Request]: 剧集评论的开放 API

Open
#526 1 comment 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
679
Forks
77
Avg merge
12m
Merged PRs (30d)
7

Description

**你想添加的新功能**

API 获取剧集评论列表(吐槽箱), 最好还能有发送评论

**你希望的解决方案**

- `GET /episodes/{episodeId}/comments` 返回 paged
- `POST /episodes/{episodeId}/comments`
- `GET /comments/{commentId}` 返回 detail
- `DELETE /comments/{commentId}`
- `GET /comments/{commentId}/reactions` 获取评论的表情
- `POST /comments/{commentId}/reactions` 给别人的评论发一个表情

![image](https://github.com/bangumi/server/assets/12100985/e12e377d-3d7d-43d5-8082-da808b9fe8b6)

同理可增加 `/subjects/...`

**其他可能的替代方案**

开发者自行爬网页, 既麻烦又浪费服务器流量

**其他相关信息**

在写 app, 现在评论是刚需, 找了一圈没看到有 API
不会 go, 不过相对于去爬网页, 照着现有代码捣鼓一下也不是不能 PR...

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing API entry points related to episodes, subjects, comments, and reactions. Done would require agreed behavior and implemented endpoints for listing, creating, retrieving, deleting, and reacting to comments, including pagination and the proposed subject equivalents.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.