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

Bug: return created object instead of message in POST author

Đang mở
#123 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Category: Coding First Timers Only Open Source Hack Status: Available Type: Bug
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.
![image](https://user-images.githubusercontent.com/16724101/110525400-d357ae80-8114-11eb-9997-bc6e743678f4.png)

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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.