Skip to content

Conversation

@sri-dodds
Copy link
Collaborator

Developer: Srinithi Doddapaneni

Closes #24

Pull Request Summary

Created functionality for user to search for recipes based on name instead of just id. The user should be able to type in a few letters and be able to get recipes with matching letters in the name to pop up (not case sensitive)

Modifications

added to database/db.ts: created a searchByName parameter
modified api/recipe/[id]/route.ts: modified the GET endpoint to include a search by name

Testing Considerations

Tested out conditions in postman by searching using the name key for existing recipes in MongoDB

Pull Request Checklist

  • Code is neat, readable, and works
  • Comments are appropriate
  • The commit messages follows our guidelines
  • The developer name is specified
  • The summary is completed
  • Assign reviewers

Screenshots/Screencast

{put screenshots of your change, or even better a screencast displaying the functionality}

@sri-dodds sri-dodds requested a review from soramicha February 12, 2026 03:46
Copy link
Collaborator

@soramicha soramicha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The jest tests are still not passing - also you don't have to make a new pr each time- you can fix the builds by making new commits. let me know if you are confused!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants