Skip to content

Abhinav - Kitchen Inventory Management - Create Backend API endpoints to add and retrieve Processing projects#2025

Merged
one-community merged 2 commits into
developmentfrom
Abhinav-Kitchen-Inventory-Management-Create-Backend-API-endpoints-to-add-and-retrieve-Processing-projects
May 8, 2026
Merged

Abhinav - Kitchen Inventory Management - Create Backend API endpoints to add and retrieve Processing projects#2025
one-community merged 2 commits into
developmentfrom
Abhinav-Kitchen-Inventory-Management-Create-Backend-API-endpoints-to-add-and-retrieve-Processing-projects

Conversation

@abhinav-TB
Copy link
Copy Markdown
Member

@abhinav-TB abhinav-TB commented Jan 30, 2026

Description

image

Related PRS (if any):

No related PRs. Checkout to the branch in this PR.

Main changes explained:

  • Create src/models/processingProject.js for Processing Projects model.
  • Create src/controllers/processingProjectController.js for logic to add and get processing projects.
  • Create src/routes/processingProjectRouter.js for defining the routes.
  • Update src/startup/routes.js to include the new routes.

How to test:

  1. check into current branch
  2. do npm install and npm run dev to run this PR locally
  3. Clear site data/cache
  4. Use admin/owner credentials to login using post 'http://localhost:4500/api/login' and put the token obtained in the Authorization header of next requests to endpoints of inventory items.
  5. Use postman or similar tool to test API endpoints.
  6. verify function "add processing project" and "get processing projects"
    • (addProcessingProject) post http://localhost:4500/api/kitchenandinventory/processing
    • (getProcessingProjects) get http://localhost:4500/api/kitchenandinventory/processing

Screenshots or videos of changes:

Below are the screenshots of testing of API endpoints.

image image

Note:

Include the information the reviewers need to know.

@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label May 4, 2026
Copy link
Copy Markdown

@DeepighaJ DeepighaJ left a comment

Choose a reason for hiding this comment

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

Checkout to the current branch and started backend.
Logged in Owner and generated token and POST and GET calls are worked as expected to the given endpoint.

Image Image Image

Copy link
Copy Markdown

@Radia731 Radia731 left a comment

Choose a reason for hiding this comment

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

Hello!
Checked out the branch, ran npm install and npm run dev, and utilized an active Admin token for authentication. Tested the newly added processing API endpoints via Postman, and here are the results (screenshots attached below):

POST (Add processing project): /api/kitchenandinventory/processing endpoint with the required body - returned a 201 response ✅

GET (Get processing projects): Queried the /api/kitchenandinventory/processing endpoint and verified the expected processing projects were returned successfully in the response. ✅

Summary - This PR is approved and ready for Jae to merge.

Screenshot 2026-05-07 at 10 55 07 PM Screenshot 2026-05-07 at 10 54 40 PM

abhinav-TB added 2 commits May 8, 2026 16:05
…Create-Backend-API-endpoints-to-add-and-retrieve-Processing-projects
…Create-Backend-API-endpoints-to-add-and-retrieve-Processing-projects
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@one-community
Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community one-community merged commit 8a200e7 into development May 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants