anitab-org / stem-diverse-tv

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.
https://stem-diverse-tv.herokuapp.com/
GNU General Public License v3.0
13 stars 49 forks source link

Bug: change category POST endpoint #124

Open NenadPantelic opened 3 years ago

NenadPantelic commented 3 years ago

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

Desktop (please complete the following information):

Additional context

N/A

NenadPantelic commented 3 years ago

@annabauza @vatsalkul Please, review and label it.

nk7608 commented 2 years ago

Hey, this seems to be an interesting issue, would like to try working on it if assigned. Thanks.