anitab-org / anitab-org/stem-diverse-tv
Bug: change category POST endpoint
- Vorherrschende Sprache
- Python
- Sterne
- 13
- Forks
- 48
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.