Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit menu endpoint #41

Merged
merged 7 commits into from Oct 22, 2022
Merged

Edit menu endpoint #41

merged 7 commits into from Oct 22, 2022

Conversation

Jothebanner
Copy link
Contributor

Edit menu endpoint
This feature adds an api endpoint at /edit-menu which allows users to create and update menus. Issue #23

MessManagementTests

Checklist

  • [✔] I have tested in local Environment.
  • [✔] I have made the fix as per issue conversation

…Takes in a menu object and edits the menu if it already exists for that day, creates a new menu record if it doesn't already exist.
@adityabisht02
Copy link
Owner

We can use unix time while logging user attendance( this will be a different api) for now just use the day to pinpoint the menu that needs to be changed.

@adityabisht02
Copy link
Owner

@Jothebanner any updates?

@Jothebanner
Copy link
Contributor Author

@adityabisht02 I changed the day to be between 1 and 7. Let me know if there is anything else that needs to change. Thanks!

… removed the integer check in favor of accepting the different days in text format such as 'Sunday'
@Jothebanner
Copy link
Contributor Author

Hey @adityabisht02, I updated the endpoint to work with primer data.

@adityabisht02
Copy link
Owner

Looks good, sorry I couldnt respond earlier

@adityabisht02 adityabisht02 merged commit 9e644a3 into adityabisht02:main Oct 22, 2022
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.

None yet

2 participants