{"info":{"_postman_id":"6d3a9957-453f-44c4-a2da-78ec060e496d","name":"Sauce Code","description":"<html><head></head><body><p>A summary of the requests available to manipulate my Sauce Code wep app.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"51901925","collectionId":"6d3a9957-453f-44c4-a2da-78ec060e496d","publishedId":"2sBXVo7mvq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"D3D3D3","highlight":"FF6C37"},"publishDate":"2026-01-28T22:42:06.000Z"},"item":[{"name":"Get Ingredients","id":"bb2dcce9-e395-4c34-83eb-d8a3bfa94efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"127.0.0.1:8090/get/ingredients/:name","description":"<p>Returns a list of the ingredients containing the search term 'name'</p>\n","urlObject":{"port":"8090","path":["get","ingredients",":name"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>(string)\nThe search term to be used</p>\n","type":"text/plain"},"type":"any","value":"","key":"name"}]}},"response":[{"id":"8ba364b2-decc-4b2f-8e02-b0c7464ac9cd","name":"Successful example","originalRequest":{"method":"GET","header":[],"url":{"raw":"127.0.0.1:8090/get/ingredients/:name","host":["127","0","0","1"],"port":"8090","path":["get","ingredients",":name"],"variable":[{"key":"name","value":"tomato","description":"The search term to be used"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"114"},{"key":"ETag","value":"W/\"72-AM7g8lJ0qdwV0Lj9tMLveE1Vv/U\""},{"key":"Date","value":"Wed, 28 Jan 2026 21:43:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Tomato\",\n        \"description\": \"A plant with an edible red fruit\",\n        \"cost\": \"4.00\",\n        \"sauces\": [\n            \"Bolognese\",\n            \"Tomato\"\n        ]\n    }\n]"}],"_postman_id":"bb2dcce9-e395-4c34-83eb-d8a3bfa94efb"},{"name":"Get Ingredient","id":"4cf89859-b918-4c40-9484-c86da017fc94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"127.0.0.1:8090/get/ingredient/:name","description":"<p>Returns the data associated with the ingredient whose name attribute is 'name'</p>\n","urlObject":{"port":"8090","path":["get","ingredient",":name"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>(string)\nThe name of the ingredient whose data is being returned</p>\n","type":"text/plain"},"type":"any","value":"","key":"name"}]}},"response":[{"id":"e80ba8a0-d3e9-49f1-8249-aaa54a6a8aed","name":"Successful example","originalRequest":{"method":"GET","header":[],"url":{"raw":"127.0.0.1:8090/get/ingredient/:name","host":["127","0","0","1"],"port":"8090","path":["get","ingredient",":name"],"variable":[{"key":"name","value":"tomato","description":"The name of the ingredient whose data is being returned"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"112"},{"key":"ETag","value":"W/\"70-VZu24kk84WcGez/ZT8MWEOwY38E\""},{"key":"Date","value":"Wed, 28 Jan 2026 21:43:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Tomato\",\n    \"description\": \"A plant with an edible red fruit\",\n    \"cost\": \"4.00\",\n    \"sauces\": [\n        \"Bolognese\",\n        \"Tomato\"\n    ]\n}"}],"_postman_id":"4cf89859-b918-4c40-9484-c86da017fc94"},{"name":"Post ingredient","id":"8d771acf-97fd-4c0a-8a9e-064a45f7c6b7","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"object\",\r\n    \"properties\": {\r\n        \"name\": {\r\n            \"type\": \"string\"\r\n        },\r\n        \"description\": {\r\n            \"type\": \"string\"\r\n        },\r\n        \"cost\": {\r\n            \"type\": \"string\"\r\n        },\r\n        \"sauces\": {\r\n            \"type\": \"array\"\r\n        }\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:8090/post/ingredient","description":"<p>Updates the files of the server to include information about a new ingredient, and also returns an updated list of ingredients</p>\n","urlObject":{"port":"8090","path":["post","ingredient"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"22267465-2782-4b67-b33a-a5c1f7c4c513","name":"Successful example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"name\":\"Mozarella\",\"description\":\"A soft cheese from Southern Italy\",\"cost\":\"3.00\",\"sauces\":[]}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:8090/post/ingredient"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1023"},{"key":"ETag","value":"W/\"3ff-V+EY/RkT3LG46lxC14TUCwonXCw\""},{"key":"Date","value":"Wed, 28 Jan 2026 21:42:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Garlic\",\n        \"description\": \"A bulbous plant with a strong smell and flavour\",\n        \"cost\": \"3.00\",\n        \"sauces\": [\n            \"Bolognese\",\n            \"Pesto\",\n            \"Pesto\",\n            \"Pesto\"\n        ]\n    },\n    {\n        \"name\": \"Onion\",\n        \"description\": \"The bulb of an edible plant with a strong smell and flavour\",\n        \"cost\": \"1.50\",\n        \"sauces\": [\n            \"Bolognese\"\n        ]\n    },\n    {\n        \"name\": \"Tomato\",\n        \"description\": \"A plant with an edible red fruit\",\n        \"cost\": \"4.00\",\n        \"sauces\": [\n            \"Bolognese\",\n            \"Tomato\"\n        ]\n    },\n    {\n        \"name\": \"Parmesan\",\n        \"description\": \"A hard italian cheese\",\n        \"cost\": \"27.00\",\n        \"sauces\": [\n            \"Pesto\",\n            \"Pesto\",\n            \"Pesto\"\n        ]\n    },\n    {\n        \"name\": \"Basil\",\n        \"description\": \"An edible plant used as a herb\",\n        \"cost\": \"15.00\",\n        \"sauces\": [\n            \"Pesto\",\n            \"Pesto\",\n            \"Pesto\"\n        ]\n    },\n    {\n        \"name\": \"Pinenuts\",\n        \"description\": \"The edible seeds of pine trees\",\n        \"cost\": \"33.00\",\n        \"sauces\": [\n            \"Pesto\",\n            \"sdf\",\n            \"Pesto\",\n            \"Pesto\"\n        ]\n    },\n    {\n        \"name\": \"Mozarella\",\n        \"description\": \"A soft cheese from Southern Italy\",\n        \"cost\": \"3.00\",\n        \"sauces\": []\n    },\n    {\n        \"name\": \"Mozarella\",\n        \"description\": \"A soft cheese from Southern Italy\",\n        \"cost\": \"3.00\",\n        \"sauces\": []\n    },\n    {\n        \"name\": \"Mozarella\",\n        \"description\": \"A soft cheese from Southern Italy\",\n        \"cost\": \"3.00\",\n        \"sauces\": []\n    }\n]"}],"_postman_id":"8d771acf-97fd-4c0a-8a9e-064a45f7c6b7"},{"name":"Get Sauces","id":"94da5f87-5865-4163-b9e3-d998f772c434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"127.0.0.1:8090/get/sauces/:name","description":"<p>Returns a list of the sauces containing the search term 'name'</p>\n","urlObject":{"port":"8090","path":["get","sauces",":name"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>(string)\nThe search term to be used</p>\n","type":"text/plain"},"type":"any","value":"","key":"name"}]}},"response":[{"id":"7b07799d-9dc8-4352-b331-6e9da4e6b890","name":"Successful example","originalRequest":{"method":"GET","header":[],"url":{"raw":"127.0.0.1:8090/get/sauces/:name","host":["127","0","0","1"],"port":"8090","path":["get","sauces",":name"],"variable":[{"key":"name","value":"bolognese","description":"The search term to be used"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"106"},{"key":"ETag","value":"W/\"6a-12Rof12/8S9Hz71BdUtu6dfn43E\""},{"key":"Date","value":"Wed, 28 Jan 2026 21:42:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Bolognese\",\n        \"ingredients\": [\n            \"Tomato\",\n            \"Onion\",\n            \"Garlic\"\n        ],\n        \"instructions\": \"INSERT INSTRUCTIONS HERE\"\n    }\n]"}],"_postman_id":"94da5f87-5865-4163-b9e3-d998f772c434"},{"name":"Get Sauces by Ingredient","id":"50c6b9ba-7533-4098-8f24-6d4bdece16e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"127.0.0.1:8090/get/sauces/by-ingredient/:name","description":"<p>Returns a list of the sauces whose ingredients contain the search term 'name'</p>\n","urlObject":{"port":"8090","path":["get","sauces","by-ingredient",":name"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>(string)\nThe search term to be used</p>\n","type":"text/plain"},"type":"any","value":"","key":"name"}]}},"response":[{"id":"19a242c4-6ee4-40f9-8dfa-77c25b831f4b","name":"Successful example","originalRequest":{"method":"GET","header":[],"url":{"raw":"127.0.0.1:8090/get/sauces/by-ingredient/:name","host":["127","0","0","1"],"port":"8090","path":["get","sauces","by-ingredient",":name"],"variable":[{"key":"name","value":"tomato","description":"The search term to be used"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"200"},{"key":"ETag","value":"W/\"c8-qkrnSxLWMvIvg6+VBwxvNhUmD3s\""},{"key":"Date","value":"Wed, 28 Jan 2026 21:46:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Bolognese\",\n        \"ingredients\": [\n            \"Tomato\",\n            \"Onion\",\n            \"Garlic\"\n        ],\n        \"instructions\": \"INSERT INSTRUCTIONS HERE\"\n    },\n    {\n        \"name\": \"Tomato\",\n        \"ingredients\": [\n            \"Tomato\",\n            \"Garlic\"\n        ],\n        \"instructions\": \"INSERT INSTRUCTIONS HERE\"\n    }\n]"}],"_postman_id":"50c6b9ba-7533-4098-8f24-6d4bdece16e0"},{"name":"Get Sauce","id":"33cdaa15-eae2-435e-8a29-40c89c58c53b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[],"url":"127.0.0.1:8090/get/sauce/:name","description":"<p>Returns the data associated with the sauce whose name attribute is 'name'</p>\n","urlObject":{"port":"8090","path":["get","sauce",":name"],"host":["127","0","0","1"],"query":[],"variable":[{"description":{"content":"<p>(string)\nThe name of the sauce whose data is being returned</p>\n","type":"text/plain"},"type":"any","value":"","key":"name"}]}},"response":[{"id":"b62f7b0b-ac75-441f-92d7-de317b349a47","name":"Successful example","originalRequest":{"method":"GET","header":[],"url":{"raw":"127.0.0.1:8090/get/sauce/:name","host":["127","0","0","1"],"port":"8090","path":["get","sauce",":name"],"variable":[{"key":"name","value":"bolognese","description":"The name of the sauce whose data is being returned"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"104"},{"key":"ETag","value":"W/\"68-suS4yM+M4m7zKfAcj+yIAEC+juM\""},{"key":"Date","value":"Wed, 28 Jan 2026 21:41:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Bolognese\",\n    \"ingredients\": [\n        \"Tomato\",\n        \"Onion\",\n        \"Garlic\"\n    ],\n    \"instructions\": \"INSERT INSTRUCTIONS HERE\"\n}"},{"id":"7bdb20dc-0cca-43bf-8dc9-6dbafb2d648c","name":"Get Sauce","originalRequest":{"method":"GET","header":[],"url":{"raw":"127.0.0.1:8090/get/sauce/:name","host":["127","0","0","1"],"port":"8090","path":["get","sauce",":name"],"variable":[{"key":"name","value":"","description":"The name of the sauce whose data is being returned"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"Connection","value":"close"},{"key":"Date","value":"Wed, 28 Jan 2026 21:54:46 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":null},{"id":"9f7c1bd7-c427-4711-bd68-3bc2536e6b7f","name":"Get Sauce","originalRequest":{"method":"GET","header":[],"url":{"raw":"127.0.0.1:8090/get/sauce/:name","host":["127","0","0","1"],"port":"8090","path":["get","sauce",":name"],"variable":[{"key":"name","value":"","description":"The name of the sauce whose data is being returned"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"Connection","value":"close"},{"key":"Date","value":"Wed, 28 Jan 2026 21:56:05 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"33cdaa15-eae2-435e-8a29-40c89c58c53b"},{"name":"Post Sauce","id":"38065d91-c962-4071-8269-60c7c241945f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": \"object\",\r\n    \"properties\": {\r\n        \"name\": {\r\n            \"type\": \"string\"\r\n        },\r\n        \"ingredients\": {\r\n            \"type\": \"array\",\r\n            \"items\": {\r\n                \"type\": \"string\"\r\n            }\r\n        },\r\n        \"instructions\": {\r\n            \"type\": \"string\"\r\n        }\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:8090/post/sauce","description":"<p>Updates the files of the server to include information about a new sauce, and also returns an updated list of sauces</p>\n","urlObject":{"port":"8090","path":["post","sauce"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"9a25af0c-ef6a-450b-a5e0-01389c72fa9c","name":"Successful example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"name\":\"Pesto\",\"ingredients\":[\"Garlic\",\"Parmesan\",\"Basil\",\"Pinenuts\"],\"instructions\":\"INSERT INSTRUCTIONS HERE\"}"},"url":"127.0.0.1:8090/post/sauce"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"428"},{"key":"ETag","value":"W/\"1ac-60QqrV9/WYLUs5nQ8DiIjYRzya0\""},{"key":"Date","value":"Wed, 28 Jan 2026 22:09:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Bolognese\",\n        \"ingredients\": [\n            \"Tomato\",\n            \"Onion\",\n            \"Garlic\"\n        ],\n        \"instructions\": \"INSERT INSTRUCTIONS HERE\"\n    },\n    {\n        \"name\": \"Tomato\",\n        \"ingredients\": [\n            \"Tomato\",\n            \"Garlic\"\n        ],\n        \"instructions\": \"INSERT INSTRUCTIONS HERE\"\n    },\n    {\n        \"name\": \"Pesto\",\n        \"ingredients\": [\n            \"Garlic\",\n            \"Parmesan\",\n            \"Basil\",\n            \"Pinenuts\"\n        ],\n        \"instructions\": \"INSERT INSTRUCTIONS HERE\"\n    },\n    {\n        \"name\": \"Pesto\",\n        \"ingredients\": [\n            \"Garlic\",\n            \"Parmesan\",\n            \"Basil\",\n            \"Pinenuts\"\n        ],\n        \"instructions\": \"INSERT INSTRUCTIONS HERE\"\n    }\n]"}],"_postman_id":"38065d91-c962-4071-8269-60c7c241945f"}]}