STEM Diverse TV is a project which gather and provide inspiring, motivating, informative, educational and supportive videos about diversity in STEM. This is a backend which provide content for multiple frontend applications build with Applicaster Zapp platform.
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:
Go to POST /categories/
Populate the payload fields
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):
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:
/categories/
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):
Additional context
N/A