Abhinav kitchen inventory management planting trimming culling events#2109
Open
abhinav-TB wants to merge 4 commits intodevelopmentfrom
Open
Abhinav kitchen inventory management planting trimming culling events#2109abhinav-TB wants to merge 4 commits intodevelopmentfrom
abhinav-TB wants to merge 4 commits intodevelopmentfrom
Conversation
Backend Release to Main [2.82]
Backend Release to Main [2.83]
… routes for Kitchen Inventory Management
…ing, and culling events.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Description
Related PRS (if any):
This is a backend-only PR
Main changes explained:
POSTandGETrequests for transplanting events.POSTandGETrequests for harvesting events, including an optionaltypefilter query parameter./api/kitchenandinventorypath.How to test:
Abhinav-Kitchen-Inventory-Management-Create-database-models-and-backend-API-endpoints-for-transplanting-and-harvesting-eventsnpm installandnpm run devto run this PR locallyPOST /api/loginendpoint to obtain a JWT authentication token.Authorizationheader to your JWT token.POSTrequest tohttp://localhost:4500/api/kitchenandinventory/transplantingwith a JSON body:{ "name": "Tomato Transplant", "related_to": "Garden", "date": "2026-03-20", "position_from": "Greenhouse Bed A", "position_to": "Garden Plot 3" }(Verify a 201 Created response).
verify function "Get Transplanting Events" by sending a GET request to http://localhost:4500/api/kitchenandinventory/transplanting and ensuring the created event appears.
verify function "Create Harvesting Event" by sending a POST request to http://localhost:4500/api/kitchenandinventory/harvesting with a JSON body:
json
{
"name": "Apple Harvest",
"related_to": "Orchard",
"type": "orchard harvesting",
"expected_date": "2026-09-15",
"yield": 150
}
verify function "Get Harvesting Events by Type" by sending a GET request to http://localhost:4500/api/kitchenandinventory/harvesting?type=orchard%20harvesting and verifying the data is filtered correctly.
Screenshots or videos of changes:
Screen.Recording.2026-03-14.at.11.38.58.AM.mov