anitab-org / anitab-org/stem-diverse-tv
Bug: return created object instead of message in POST author
- 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.

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