anitab-org / anitab-org/stem-diverse-tv
Bug: change category POST endpoint
- 主要语言
- Python
- 星标
- 13
- 派生
- 48
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Describe the bug
Currently, when we create a category, we got the message `Category added`. It would be more beneficial to return the created object. Also, we provide the title of the category as the query string, we should send the data in the body.
### To Reproduce
Steps to reproduce the behavior:
1. Go to POST `/categories/`
2. Populate the payload fields
3. See the response message (if the action went successful)
### Expected behavior
Instead of returning a message, return the representation of the created object. Correct the implementation of the POST endpoint, send the data in the body.
### Screenshots
If applicable, add screenshots to help explain your problem.


### Desktop (please complete the following information):
- OS: elementary OS 5.1.7 Hera (built on Ubuntu)
- Browser: Google Chrome
- Version: 88.0.4324.182
### Additional context
N/A
贡献指南
评估
这个 Issue 还没有评估数据。