{"info":{"_postman_id":"a4fc2c89-e5bb-424b-88a2-41c14e2ef597","name":"Recipe","description":"<html><head></head><body><p>The <strong>recipe collection</strong> stores cooking recipes with their name, ingredients, and procedure, and supports full CRUD operations (create, view all, view by ID, update, delete).EndFragment</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"44991925","collectionId":"a4fc2c89-e5bb-424b-88a2-41c14e2ef597","publishedId":"2sB3dLUC2B","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-11-29T14:17:25.000Z"},"item":[{"name":"create","id":"c056b447-aa3d-4a22-aebe-9bb6f1b11462","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n  \r\n {\r\n    \"recipeName\": \"Pancakes\",\r\n    \"Ingredients\": \"flour, eggs, milk, sugar\",\r\n    \"procedure\": \"Prepare batter; cook lightly on both sides.\"\r\n  }\r\n ","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/recipe/create","description":"<p><strong>Creates a new recipe</strong> by accepting JSON data such as recipeName, Ingredients, and procedure.</p>\n<p>The server saves it to the database and returns the newly created recipe.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","recipe","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fb48fd23-0b35-4862-9ce8-7b021286b8c2","name":"creating recipe","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n  \r\n {\r\n    \"recipeName\": \"Pancakes\",\r\n    \"Ingredients\": \"flour, eggs, milk, sugar\",\r\n    \"procedure\": \"Prepare batter; cook lightly on both sides.\"\r\n  }\r\n ","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/recipe/create"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"214"},{"key":"ETag","value":"W/\"d6-GTSwGshiSngEnDEnnaQyfXl0zUM\""},{"key":"Date","value":"Fri, 28 Nov 2025 06:35:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"recipe created successfully\",\n    \"data\": {\n        \"recipeName\": \"Pancakes\",\n        \"Ingredients\": \"flour, eggs, milk, sugar\",\n        \"procedure\": \"Prepare batter; cook lightly on both sides.\",\n        \"_id\": \"692942c47e0e01b7f52bd6f1\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"c056b447-aa3d-4a22-aebe-9bb6f1b11462"},{"name":"getting all data","id":"a4af3e4c-f03d-4147-a9e5-4f18c9db8246","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/recipe/getdata","description":"<p><strong>Fetches all recipes</strong> stored in the database.</p>\n<p>Returns an array of all recipe documents with their details.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","recipe","getdata"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8df806ff-f3ad-452a-9356-49528a568525","name":"getting all recipe","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/recipe/getdata"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"868"},{"key":"ETag","value":"W/\"364-e7v5CQ5Fqgjv2VeO7FvoJmTVW/g\""},{"key":"Date","value":"Fri, 28 Nov 2025 06:43:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"data retireved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"692941f47e0e01b7f52bd6e8\",\n            \"recipeName\": \"briyani\",\n            \"Ingredients\": \"rice chicken gravy\",\n            \"procedure\": \"cook under little heat\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"692942937e0e01b7f52bd6eb\",\n            \"recipeName\": \"Tomato Soup\",\n            \"Ingredients\": \"tomato, garlic, basil, salt\",\n            \"procedure\": \"Blend tomatoes and simmer gently.\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"692942a47e0e01b7f52bd6ed\",\n            \"recipeName\": \"Veg Fried Rice\",\n            \"Ingredients\": \"rice, carrot, beans, soy sauce\",\n            \"procedure\": \"Stir-fry veggies; mix with cooked rice.\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"692942b67e0e01b7f52bd6ef\",\n            \"recipeName\": \"Lemon Chicken\",\n            \"Ingredients\": \"chicken, lemon, pepper, salt\",\n            \"procedure\": \"Marinate chicken in lemon and spices; pan fry.\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"692942c47e0e01b7f52bd6f1\",\n            \"recipeName\": \"Pancakes\",\n            \"Ingredients\": \"flour, eggs, milk, sugar\",\n            \"procedure\": \"Prepare batter; cook lightly on both sides.\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"a4af3e4c-f03d-4147-a9e5-4f18c9db8246"},{"name":"getting by id","id":"185d3094-ff5c-4b49-9277-19212b25a6ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/recipe/getdata/692942c47e0e01b7f52bd6f1","description":"<p><strong>Fetches a single recipe</strong> using the recipe’s unique MongoDB <code>_id</code>.</p>\n<p>Returns detailed information about that specific recipe.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","recipe","getdata","692942c47e0e01b7f52bd6f1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8914719c-9178-4394-8aef-58c16939d2d9","name":"getting recipe by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/recipe/getdata/692942c47e0e01b7f52bd6f1"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"200"},{"key":"ETag","value":"W/\"c8-xLW0tmGcmmfPaFLxLm8xqiMskIg\""},{"key":"Date","value":"Fri, 28 Nov 2025 06:51:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \" recipe Found\",\n    \"data\": {\n        \"_id\": \"692942c47e0e01b7f52bd6f1\",\n        \"recipeName\": \"Pancakes\",\n        \"Ingredients\": \"flour, eggs, milk, sugar\",\n        \"procedure\": \"Prepare batter; cook lightly on both sides.\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"185d3094-ff5c-4b49-9277-19212b25a6ee"},{"name":"update","id":"2756338c-c557-49e6-9917-fe86e3dbfedb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n    \"recipeName\": \"Aloo Paratha\",\r\n    \"Ingredients\": \"flour, potato, chili, ghee\",\r\n    \"procedure\": \"Stuff dough with spiced potato; cook on tawa.\"\r\n  }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/recipe/update/692942c47e0e01b7f52bd6f1","description":"<p><strong>Updates an existing recipe</strong> identified by its <code>_id</code>.</p>\n<p>Accepts new values (recipeName, Ingredients, procedure) and returns the updated recipe.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","recipe","update","692942c47e0e01b7f52bd6f1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a5d2bfb6-2878-40c2-9aab-9b4748922ebd","name":"updating a recipe","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n    \"recipeName\": \"Aloo Paratha\",\r\n    \"Ingredients\": \"flour, potato, chili, ghee\",\r\n    \"procedure\": \"Stuff dough with spiced potato; cook on tawa.\"\r\n  }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/recipe/update/692942c47e0e01b7f52bd6f1"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"223"},{"key":"ETag","value":"W/\"df-HHY7R0Q9YQ3Q5rdWtSnsEbFNngc\""},{"key":"Date","value":"Fri, 28 Nov 2025 07:04:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \" recipe updated successfully\",\n    \"data\": {\n        \"_id\": \"692942c47e0e01b7f52bd6f1\",\n        \"recipeName\": \"Aloo Paratha\",\n        \"Ingredients\": \"flour, potato, chili, ghee\",\n        \"procedure\": \"Stuff dough with spiced potato; cook on tawa.\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"2756338c-c557-49e6-9917-fe86e3dbfedb"},{"name":"delete","id":"301ddbaa-80b6-4219-85e8-7875e5382386","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/recipe/delete/692942937e0e01b7f52bd6eb","description":"<p><strong>Deletes a recipe</strong> based on the given <code>_id</code>.</p>\n<p>Returns a confirmation message and the deleted recipe data.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","recipe","delete","692942937e0e01b7f52bd6eb"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"578a7917-8515-4391-b6c5-89dcea40a5a2","name":"deleting the recipe","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/recipe/delete/692942c47e0e01b7f52bd6f1"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"223"},{"key":"ETag","value":"W/\"df-ob9A5Hjhp3s+Tfu0B5IM9Wilp3M\""},{"key":"Date","value":"Fri, 28 Nov 2025 07:10:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \" recipe deleted successfully\",\n    \"data\": {\n        \"_id\": \"692942c47e0e01b7f52bd6f1\",\n        \"recipeName\": \"Aloo Paratha\",\n        \"Ingredients\": \"flour, potato, chili, ghee\",\n        \"procedure\": \"Stuff dough with spiced potato; cook on tawa.\",\n        \"__v\": 0\n    }\n}"},{"id":"859a6719-3935-4bb5-bb4a-b517de075049","name":"deleting recipe","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/recipe/delete/692942937e0e01b7f52bd6eb"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"210"},{"key":"ETag","value":"W/\"d2-dLNmdYN9QwVEJHYJ5IYQuXSFwRE\""},{"key":"Date","value":"Sat, 29 Nov 2025 04:01:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Recipe deleted successfully\",\n    \"data\": {\n        \"_id\": \"692942937e0e01b7f52bd6eb\",\n        \"recipeName\": \"Tomato Soup\",\n        \"Ingredients\": \"tomato, garlic, basil, salt\",\n        \"procedure\": \"Blend tomatoes and simmer gently.\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"301ddbaa-80b6-4219-85e8-7875e5382386"},{"name":"New Request","id":"ccd79cf0-3529-441a-888e-ca71b5718a26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"ccd79cf0-3529-441a-888e-ca71b5718a26"}]}