anitab-org / anitab-org/stem-diverse-tv
Bug: return created object instead of message in POST author
- Ngôn ngữ chính
- Python
- Star
- 13
- Fork
- 48
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Describe the bug
Currently, when we create an author, we got a message `Author added successfully`. It would be more beneficial to return the created object.
### To Reproduce
Steps to reproduce the behavior:
1. Go to POST `/authors/`
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.
### 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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.