Skip to content

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

Open
abhinav-TB wants to merge 1 commit intodevelopmentfrom
Abhinav-Kitchen-Inventory-Management-Create-Backend-API-endpoints-to-add-and-retrieve-Processing-projects
Open

Abhinav - Kitchen Inventory Management - Create Backend API endpoints to add and retrieve Processing projects#2025
abhinav-TB wants to merge 1 commit intodevelopmentfrom
Abhinav-Kitchen-Inventory-Management-Create-Backend-API-endpoints-to-add-and-retrieve-Processing-projects

Conversation

@abhinav-TB
Copy link
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.

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.

1 participant

Comments