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

Recipe Routes #79

Closed KeenParchment closed 5 months ago

KeenParchment commented 5 months ago

Description / Changes Made

Portions of this code that utilized AI generation

Screenshots

When creating a new recipe in the Firestore Emulator image

Deleting the created recipe (note the ID are the same from the screenshot above) image

How to Test

  1. Comment out @app.before_request in the server.py file. We do not need to run the middleware function while testing.
  2. Run the Firebase Emulator.
  3. Run the python server.py.
  4. Using Postman, use the appropriate route to the Emulator.
  5. When creating a recipe post: Set method to POST, set route to http://127.0.0.1:5000/api/recipes, and add JSON body to input.
  6. Check with the Firestore Emulator that the post has been created.
  7. When deleting a recipe post: Set method to DELETE, and set route to an existing recipe http://127.0.0.1:5000/api/recipes/. The route from the screenshots above is http://127.0.0.1:5000/api/recipes/lQE1W8BaNZccPLFZ6ULS.
  8. Check with the Firestore Emulator that the post has been deleted from the database.

Checklist

rparker2003 commented 5 months ago

Your Recipe-Routes branch must be updated before this pull request can be merged. You are currently 14 commits behind main.