UNLV-CS472-672 / 2024-S-GROUP5-Munch

The Munch app is a social platform where users create profiles by selecting preferred foods.
1 stars 11 forks source link

Create Post Backend Functionality #96

Closed mitshelle closed 5 months ago

mitshelle commented 5 months ago

Description / Changes Made

Portions of this code that utilized AI generation

How to Test

  1. Run frontend and backend
  2. Navigate to the Create page
  3. Create a post and hit Post button
  4. Ensure request shows up in server

Checklist

StacL commented 5 months ago

Hi Bestie! Your post creation POST call is failing because it's missing some data that needs to be sent to the backend. Add creation date and username to the JSON you send in the payload.

Post Creation Schema:

"author": f"users/{testing_user_id}",
"comments": [],
"creation_date": "",
"description": "This is my first post!",
"likes": 0,
"location": "",
"pictures": [],
"username": "",