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

Bug: return created object instead of message in POST author

Ouverte
#123 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Category: Coding First Timers Only Open Source Hack Status: Available Type: Bug
Langage dominant
Python
Étoiles
13
Forks
48
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.