{"info":{"_postman_id":"2f6bcc97-d334-4b7c-b5c7-f670e9e82d2f","name":"Inventory Management","description":"<html><head></head><body><p>APIs designed to help track and manage inventory, update stock levels, and handle orders efficiently. Perfect for integrating with e-commerce platforms and warehouse systems to keep everything organized and up to date.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"29778371","collectionId":"2f6bcc97-d334-4b7c-b5c7-f670e9e82d2f","publishedId":"2sAYBbf9xL","public":true,"customColor":{"top-bar":"59d5e0","right-sidebar":"f4538a","highlight":"FAA300"},"publishDate":"2024-12-07T18:39:01.000Z"},"item":[{"name":"Home","id":"8c85feb9-67fe-421e-911d-cda2591a6117","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-inventory}}","urlObject":{"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c85feb9-67fe-421e-911d-cda2591a6117"},{"name":"Get Products","id":"86ef0052-16bf-41d2-a11b-143650eade1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/","description":"<p>The endpoint retrieves a list of products from the inventory.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response for this request can be documented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"product\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"_id\": {\"type\": \"string\"},\n        \"productName\": {\"type\": \"string\"},\n        \"quantity\": {\"type\": \"integer\"},\n        \"price\": {\"type\": \"number\"},\n        \"category\": {\"type\": \"string\"},\n        \"createdAt\": {\"type\": \"string\"},\n        \"updatedAt\": {\"type\": \"string\"},\n        \"__v\": {\"type\": \"integer\"}\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["api","product",""],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"3221ade4-d65c-4a26-8ea1-a18432455ded","name":"Get Products","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"31"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 15:54:40 GMT"},{"key":"Etag","value":"W/\"1f-Yo35gJFOTCGTq2zsGj0lyARp8b8\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No products found\"\n}"},{"id":"3de8e460-3025-4da1-8061-d130d2da1905","name":"Get Products","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/6642382784bed11e0b935755"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"202"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 15:57:10 GMT"},{"key":"Etag","value":"W/\"ca-RAh9sr0nRl/hP7+SJf0qZN1k8lw\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"_id\": \"6642382784bed11e0b935755\",\n        \"productName\": \"Dove Soap\",\n        \"quantity\": 100,\n        \"price\": 20,\n        \"category\": \"Bath\",\n        \"createdAt\": \"2024-05-13T15:56:23.918Z\",\n        \"updatedAt\": \"2024-05-13T15:56:23.918Z\",\n        \"__v\": 0\n    }\n}"},{"id":"1da854a2-8821-4f86-ba6a-b8945d9efab3","name":"Get Products","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"31"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 14 May 2024 17:50:59 GMT"},{"key":"Etag","value":"W/\"1f-Yo35gJFOTCGTq2zsGj0lyARp8b8\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No products found\"\n}"}],"_postman_id":"86ef0052-16bf-41d2-a11b-143650eade1b"},{"name":"Add Product","id":"7310e168-7d6a-4639-a1f4-86518c1c0002","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productName\" : \"Ariel Powder\",\n    \"quantity\" : 100,\n    \"price\" : 20,\n    \"category\": \"Laundry\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-inventory}}/api/product/","description":"<p>The endpoint allows you to create a new product by making an HTTP POST request to {{host-inventory}}/api/product/. The request should include a payload in raw JSON format with the following parameters:</p>\n<ul>\n<li><p>productName (string): The name of the product</p>\n</li>\n<li><p>quantity (number): The quantity of the product</p>\n</li>\n<li><p>price (number): The price of the product</p>\n</li>\n<li><p>category (string): The category of the product</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will be in the form of a JSON schema with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"product\": {\n    \"productName\": \"\",\n    \"quantity\": 0,\n    \"price\": 0,\n    \"category\": \"\",\n    \"_id\": \"\",\n    \"createdAt\": \"\",\n    \"updatedAt\": \"\",\n    \"__v\": 0\n  }\n}\n\n</code></pre>\n<p>The \"product\" object in the response will contain the same parameters as in the request payload, along with additional fields such as \"_id\", \"createdAt\", \"updatedAt\", and \"__v\". These additional fields are generated by the server and are not part of the request payload.</p>\n","urlObject":{"path":["api","product",""],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"ca02f06f-9127-47df-a89d-d34e92e90686","name":"Add Product","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productName\" : \"Dove Soap\",\n    \"quantity\" : 100,\n    \"price\" : 20,\n    \"category\": \"Bath\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-inventory}}/api/product/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"202"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 15:56:24 GMT"},{"key":"Etag","value":"W/\"ca-MWB2Ig3juLpkbKjV3mCii/j8KB4\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"productName\": \"Dove Soap\",\n        \"quantity\": 100,\n        \"price\": 20,\n        \"category\": \"Bath\",\n        \"_id\": \"6642382784bed11e0b935755\",\n        \"createdAt\": \"2024-05-13T15:56:23.918Z\",\n        \"updatedAt\": \"2024-05-13T15:56:23.918Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"7310e168-7d6a-4639-a1f4-86518c1c0002"},{"name":"Get Product by Id","id":"95b81af1-8950-43d2-b3fa-83b9a0fd517d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/6642382784bed11e0b935755","description":"<p>The endpoint makes an HTTP GET request to retrieve product details based on the provided product ID. The response for this request can be documented as a JSON schema as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"product\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"_id\": { \"type\": \"string\" },\n        \"productName\": { \"type\": \"string\" },\n        \"quantity\": { \"type\": \"number\" },\n        \"price\": { \"type\": \"number\" },\n        \"category\": { \"type\": \"string\" },\n        \"createdAt\": { \"type\": \"string\" },\n        \"updatedAt\": { \"type\": \"string\" },\n        \"__v\": { \"type\": \"number\" }\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["api","product","6642382784bed11e0b935755"],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"23bb1f5f-473d-4918-a40c-f754f3293caa","name":"Get Products","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"31","uuid":"5ba0736a-2d1b-4e92-9f9c-45eb11626166"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"b0770dfe-bc62-48d4-a592-133b9e652127"},{"key":"Date","value":"Mon, 13 May 2024 15:54:40 GMT","uuid":"84a68bba-52bd-4ec1-9ac7-3daac7f91ea9"},{"key":"Etag","value":"W/\"1f-Yo35gJFOTCGTq2zsGj0lyARp8b8\"","uuid":"8553ce17-68b7-4b31-8a8b-f8731183a774"},{"key":"Replit-Cluster","value":"picard","uuid":"4df2409f-fd57-481e-accf-ba72caefb8e4"},{"key":"Vary","value":"Origin","uuid":"170a04e2-95c2-408e-a349-27d68a177ee7"},{"key":"X-Powered-By","value":"Express","uuid":"b16b2335-0dc4-4d96-b8f6-b2985c0a206e"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"ce87de16-df58-4494-afbf-2ac21114373a"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"ce87de16-df58-4494-afbf-2ac21114373a"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No products found\"\n}"},{"id":"2be60c45-f9b5-4d08-8856-d6376cb89843","name":"Get Products","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/6642382784bed11e0b935755"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"202","uuid":"8c916604-d5d9-455e-8335-eb7fbb1203f7"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"08383bd0-fc4a-4362-9167-7b89a09fea08"},{"key":"Date","value":"Mon, 13 May 2024 15:57:10 GMT","uuid":"b68bfe99-540c-4dd3-99ec-e2f588a66f2c"},{"key":"Etag","value":"W/\"ca-RAh9sr0nRl/hP7+SJf0qZN1k8lw\"","uuid":"ebf48093-b281-4214-a1bb-82777870404a"},{"key":"Replit-Cluster","value":"picard","uuid":"315e875a-1d5c-4d38-8c69-970a736287ca"},{"key":"Vary","value":"Origin","uuid":"20f8bc26-b779-44ec-b842-2204a9228501"},{"key":"X-Powered-By","value":"Express","uuid":"e5745960-1397-4b06-8312-51fbd6eb5d33"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"6d47e7b5-aee6-4ff8-890b-7d09f937e8c3"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"6d47e7b5-aee6-4ff8-890b-7d09f937e8c3"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"_id\": \"6642382784bed11e0b935755\",\n        \"productName\": \"Dove Soap\",\n        \"quantity\": 100,\n        \"price\": 20,\n        \"category\": \"Bath\",\n        \"createdAt\": \"2024-05-13T15:56:23.918Z\",\n        \"updatedAt\": \"2024-05-13T15:56:23.918Z\",\n        \"__v\": 0\n    }\n}"},{"id":"58db55d2-be59-40cb-8291-3523a9cbeb56","name":"Get Product by Id","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/6642382784bed11e0b935755"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"202"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 15:57:10 GMT"},{"key":"Etag","value":"W/\"ca-RAh9sr0nRl/hP7+SJf0qZN1k8lw\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"_id\": \"6642382784bed11e0b935755\",\n        \"productName\": \"Dove Soap\",\n        \"quantity\": 100,\n        \"price\": 20,\n        \"category\": \"Bath\",\n        \"createdAt\": \"2024-05-13T15:56:23.918Z\",\n        \"updatedAt\": \"2024-05-13T15:56:23.918Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"95b81af1-8950-43d2-b3fa-83b9a0fd517d"},{"name":"Update Product","id":"14d6c298-1707-4efd-9e76-bd28be2e0ead","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \n    \"quantity\" : 200\n   \n}","options":{"raw":{"language":"json"}}},"url":"{{host-inventory}}/api/product/6642382784bed11e0b935755","description":"<p>The API endpoint makes an HTTP POST request to update the product with the specified ID. The request payload should include the \"quantity\" field indicating the new quantity of the product.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response will be in the form of a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"product\": {\n    \"_id\": \"string\",\n    \"productName\": \"string\",\n    \"quantity\": \"number\",\n    \"price\": \"number\",\n    \"category\": \"string\",\n    \"createdAt\": \"string\",\n    \"updatedAt\": \"string\",\n    \"__v\": \"number\"\n  }\n}\n\n</code></pre>\n<p>This schema represents the structure of the \"product\" object in the response, with each field type specified.</p>\n","urlObject":{"path":["api","product","6642382784bed11e0b935755"],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"2235e109-7132-46f0-aebb-4f931a8512bb","name":"Update Product","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \n    \"quantity\" : 200\n   \n}","options":{"raw":{"language":"json"}}},"url":"{{host-inventory}}/api/product/6642382784bed11e0b935755"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"202"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 15:59:04 GMT"},{"key":"Etag","value":"W/\"ca-63mY4Tuq8W62fdfkyhv9DDWT2qs\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"_id\": \"6642382784bed11e0b935755\",\n        \"productName\": \"Dove Soap\",\n        \"quantity\": 200,\n        \"price\": 20,\n        \"category\": \"Bath\",\n        \"createdAt\": \"2024-05-13T15:56:23.918Z\",\n        \"updatedAt\": \"2024-05-13T15:59:04.209Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"14d6c298-1707-4efd-9e76-bd28be2e0ead"},{"name":"Delete Product","id":"fbf3a35f-07ec-4db7-bccf-346ce1e2fc27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host-inventory}}/api/product/6642382784bed11e0b935755","description":"<p>This endpoint sends an HTTP DELETE request to delete a specific product with the given ID.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"message\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["api","product","6642382784bed11e0b935755"],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbf3a35f-07ec-4db7-bccf-346ce1e2fc27"},{"name":"Get Products By Category","id":"16bc5ebd-5be4-4a63-93d6-bee2acb7b2b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/category/Bath","description":"<p>The endpoint retrieves product information for the \"Bath\" category.</p>\n<p>The response for this request can be represented as a JSON schema:</p>\n<p>For single product:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"_id\": {\n      \"type\": \"string\"\n    },\n    \"productName\": {\n      \"type\": \"string\"\n    },\n    \"quantity\": {\n      \"type\": \"integer\"\n    },\n    \"price\": {\n      \"type\": \"number\"\n    },\n    \"category\": {\n      \"type\": \"string\"\n    },\n    \"createdAt\": {\n      \"type\": \"string\"\n    },\n    \"updatedAt\": {\n      \"type\": \"string\"\n    },\n    \"__v\": {\n      \"type\": \"integer\"\n    }\n  }\n}\n\n</code></pre>\n<p>For multiple products:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"products\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"_id\": {\n            \"type\": \"string\"\n          },\n          \"productName\": {\n            \"type\": \"string\"\n          },\n          \"quantity\": {\n            \"type\": \"integer\"\n          },\n          \"price\": {\n            \"type\": \"number\"\n          },\n          \"category\": {\n            \"type\": \"string\"\n          },\n          \"createdAt\": {\n            \"type\": \"string\"\n          },\n          \"updatedAt\": {\n            \"type\": \"string\"\n          },\n          \"__v\": {\n            \"type\": \"integer\"\n          }\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["api","product","category","Bath"],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"186c024f-667d-43eb-a63e-4f8ee56761d0","name":"Get Products","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"31","uuid":"5ba0736a-2d1b-4e92-9f9c-45eb11626166"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"b0770dfe-bc62-48d4-a592-133b9e652127"},{"key":"Date","value":"Mon, 13 May 2024 15:54:40 GMT","uuid":"84a68bba-52bd-4ec1-9ac7-3daac7f91ea9"},{"key":"Etag","value":"W/\"1f-Yo35gJFOTCGTq2zsGj0lyARp8b8\"","uuid":"8553ce17-68b7-4b31-8a8b-f8731183a774"},{"key":"Replit-Cluster","value":"picard","uuid":"4df2409f-fd57-481e-accf-ba72caefb8e4"},{"key":"Vary","value":"Origin","uuid":"170a04e2-95c2-408e-a349-27d68a177ee7"},{"key":"X-Powered-By","value":"Express","uuid":"b16b2335-0dc4-4d96-b8f6-b2985c0a206e"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"ce87de16-df58-4494-afbf-2ac21114373a"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"ce87de16-df58-4494-afbf-2ac21114373a"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No products found\"\n}"},{"id":"77d52267-801e-45d2-bec5-3ab6deb3aee0","name":"Get Products","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/6642382784bed11e0b935755"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"202","uuid":"8c916604-d5d9-455e-8335-eb7fbb1203f7"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"08383bd0-fc4a-4362-9167-7b89a09fea08"},{"key":"Date","value":"Mon, 13 May 2024 15:57:10 GMT","uuid":"b68bfe99-540c-4dd3-99ec-e2f588a66f2c"},{"key":"Etag","value":"W/\"ca-RAh9sr0nRl/hP7+SJf0qZN1k8lw\"","uuid":"ebf48093-b281-4214-a1bb-82777870404a"},{"key":"Replit-Cluster","value":"picard","uuid":"315e875a-1d5c-4d38-8c69-970a736287ca"},{"key":"Vary","value":"Origin","uuid":"20f8bc26-b779-44ec-b842-2204a9228501"},{"key":"X-Powered-By","value":"Express","uuid":"e5745960-1397-4b06-8312-51fbd6eb5d33"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"6d47e7b5-aee6-4ff8-890b-7d09f937e8c3"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"6d47e7b5-aee6-4ff8-890b-7d09f937e8c3"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"_id\": \"6642382784bed11e0b935755\",\n        \"productName\": \"Dove Soap\",\n        \"quantity\": 100,\n        \"price\": 20,\n        \"category\": \"Bath\",\n        \"createdAt\": \"2024-05-13T15:56:23.918Z\",\n        \"updatedAt\": \"2024-05-13T15:56:23.918Z\",\n        \"__v\": 0\n    }\n}"},{"id":"1daad879-a7bd-443d-81f6-93e5c296addc","name":"Get Products By Category","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/product/category/Laundry"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"410"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 16:02:50 GMT"},{"key":"Etag","value":"W/\"19a-Q4of5/eDlKESxVdwyEtrZVnLeLg\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"products\": [\n        {\n            \"_id\": \"6642392984bed11e0b93575d\",\n            \"productName\": \"Surf XL Powder\",\n            \"quantity\": 100,\n            \"price\": 20,\n            \"category\": \"Laundry\",\n            \"createdAt\": \"2024-05-13T16:00:41.906Z\",\n            \"updatedAt\": \"2024-05-13T16:00:41.906Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"664239a384bed11e0b935764\",\n            \"productName\": \"Ariel Powder\",\n            \"quantity\": 100,\n            \"price\": 20,\n            \"category\": \"Laundry\",\n            \"createdAt\": \"2024-05-13T16:02:43.875Z\",\n            \"updatedAt\": \"2024-05-13T16:02:43.875Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"16bc5ebd-5be4-4a63-93d6-bee2acb7b2b4"},{"name":"Create Sales","id":"808e35f2-4d3b-4726-a045-53356c5ba96d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productSold\" :\"6642392984bed11e0b93575d\",\n    \"quantity\" : \"2\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-inventory}}/api/sales","description":"<h3 id=\"post-apisales\">POST /api/sales</h3>\n<p>This endpoint is used to create a new sales record.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>productSold (string): The ID of the product being sold.</p>\n</li>\n<li><p>quantity (string): The quantity of the product being sold.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request can be represented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sales\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"productSold\": {\"type\": \"string\"},\n        \"quantity\": {\"type\": \"number\"},\n        \"totalAmount\": {\"type\": \"number\"},\n        \"_id\": {\"type\": \"string\"},\n        \"createdAt\": {\"type\": \"string\"},\n        \"updatedAt\": {\"type\": \"string\"},\n        \"__v\": {\"type\": \"number\"}\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["api","sales"],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"d0685df1-39a9-4d79-a295-002bf8ed2848","name":"Create Sales","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productSold\" :\"6642392984bed11e0b93575d\",\n    \"quantity\" : \"2\",\n    \"totalAmount\" :\"40\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-inventory}}/api/sales"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"201"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 16:17:15 GMT"},{"key":"Etag","value":"W/\"c9-eIlvwfoioMMpML8ej6EjucW4P6A\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"sales\": {\n        \"productSold\": \"6642392984bed11e0b93575d\",\n        \"quantity\": 2,\n        \"totalAmount\": 40,\n        \"_id\": \"66423d0afc3a5b5db696d6bf\",\n        \"createdAt\": \"2024-05-13T16:17:14.797Z\",\n        \"updatedAt\": \"2024-05-13T16:17:14.797Z\",\n        \"__v\": 0\n    }\n}"},{"id":"ad72de1b-ffcb-4673-a713-d840bcebf908","name":"Create Sales","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productSold\" :\"6642382784bed11e0b935755\",\n    \"quantity\" : \"20\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host-inventory}}/api/sales"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"203"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 14 May 2024 16:32:02 GMT"},{"key":"Etag","value":"W/\"cb-BzYdFvkLuNTcuL65RGMlzD+mzb0\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"sales\": {\n        \"productSold\": \"6642382784bed11e0b935755\",\n        \"quantity\": 20,\n        \"totalAmount\": 400,\n        \"_id\": \"664392012057b89b6d5388b8\",\n        \"createdAt\": \"2024-05-14T16:32:01.849Z\",\n        \"updatedAt\": \"2024-05-14T16:32:01.849Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"808e35f2-4d3b-4726-a045-53356c5ba96d"},{"name":"Get Sales","id":"807ebb66-d75d-4d72-a55a-ebf486de688d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales","description":"<p>The API endpoint retrieves a list of sales. The response for this request can be documented as a JSON schema as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"sales\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"_id\": {\n                        \"type\": \"string\"\n                    },\n                    \"productSold\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"_id\": {\n                                \"type\": \"string\"\n                            },\n                            \"productName\": {\n                                \"type\": \"string\"\n                            },\n                            \"quantity\": {\n                                \"type\": \"integer\"\n                            },\n                            \"price\": {\n                                \"type\": \"number\"\n                            },\n                            \"category\": {\n                                \"type\": \"string\"\n                            },\n                            \"createdAt\": {\n                                \"type\": \"string\"\n                            },\n                            \"updatedAt\": {\n                                \"type\": \"string\"\n                            },\n                            \"__v\": {\n                                \"type\": \"integer\"\n                            }\n                        }\n                    },\n                    \"quantity\": {\n                        \"type\": \"integer\"\n                    },\n                    \"totalAmount\": {\n                        \"type\": \"number\"\n                    },\n                    \"createdAt\": {\n                        \"type\": \"string\"\n                    },\n                    \"updatedAt\": {\n                        \"type\": \"string\"\n                    },\n                    \"__v\": {\n                        \"type\": \"integer\"\n                    }\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["api","sales"],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"030f3125-a8a7-46b9-b5d7-a2d393a8a361","name":"Get Sales","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"375"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 16:17:45 GMT"},{"key":"Etag","value":"W/\"177-ZOiRV1k095NEt3PDSlqi4jdKEoQ\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"sales\": [\n        {\n            \"_id\": \"66423d0afc3a5b5db696d6bf\",\n            \"productSold\": {\n                \"_id\": \"6642392984bed11e0b93575d\",\n                \"productName\": \"Surf XL Powder\",\n                \"quantity\": 100,\n                \"price\": 20,\n                \"category\": \"Laundry\",\n                \"createdAt\": \"2024-05-13T16:00:41.906Z\",\n                \"updatedAt\": \"2024-05-13T16:00:41.906Z\",\n                \"__v\": 0\n            },\n            \"quantity\": 2,\n            \"totalAmount\": 40,\n            \"createdAt\": \"2024-05-13T16:17:14.797Z\",\n            \"updatedAt\": \"2024-05-13T16:17:14.797Z\",\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"4f1583d6-f909-4197-bad2-b6bfa494333d","name":"Get Sales","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"367"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 14 May 2024 16:22:25 GMT"},{"key":"Etag","value":"W/\"16f-U2YxOKS8Sg9vRn//rtd6pQaI97I\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"sales\": [\n        {\n            \"_id\": \"66438fb0a8ef52462a78f039\",\n            \"productSold\": {\n                \"_id\": \"6642382784bed11e0b935755\",\n                \"productName\": \"Dove Soap\",\n                \"quantity\": 198,\n                \"price\": 20,\n                \"category\": \"Bath\",\n                \"createdAt\": \"2024-05-13T15:56:23.918Z\",\n                \"updatedAt\": \"2024-05-14T16:22:08.486Z\",\n                \"__v\": 0\n            },\n            \"quantity\": 2,\n            \"totalAmount\": 40,\n            \"createdAt\": \"2024-05-14T16:22:08.737Z\",\n            \"updatedAt\": \"2024-05-14T16:22:08.737Z\",\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"e3212f01-6152-4b12-ace4-a04758ee6d5e","name":"Get Sales","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"28"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 14 May 2024 16:24:46 GMT"},{"key":"Etag","value":"W/\"1c-KNgP7JkRBnCvyH8FAhVdtcxuZXI\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No sales found\"\n}"},{"id":"9b70b1f1-e5a6-4f5c-b298-d4b8f680e6d4","name":"Get Sales","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"28"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 14 May 2024 18:06:31 GMT"},{"key":"Etag","value":"W/\"1c-KNgP7JkRBnCvyH8FAhVdtcxuZXI\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No sales found\"\n}"}],"_postman_id":"807ebb66-d75d-4d72-a55a-ebf486de688d"},{"name":"Get Sales By Id","id":"e73e113c-0c81-4b67-9d6c-179d37c54262","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales/66423d0afc3a5b5db696d6bf","description":"<p>The endpoint retrieves sales information for a specific sale identified by the provided ID. The response for this request can be documented as a JSON schema as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"sales\": {\n            \"type\": [\"array\", \"object\"],\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"_id\": {\n                        \"type\": \"string\"\n                    },\n                    \"productSold\": {\n                        \"type\": [\"object\", \"string\"],\n                        \"properties\": {\n                            \"_id\": {\n                                \"type\": \"string\"\n                            },\n                            \"productName\": {\n                                \"type\": \"string\"\n                            },\n                            \"quantity\": {\n                                \"type\": \"integer\"\n                            },\n                            \"price\": {\n                                \"type\": \"number\"\n                            },\n                            \"category\": {\n                                \"type\": \"string\"\n                            },\n                            \"createdAt\": {\n                                \"type\": \"string\",\n                                \"format\": \"date-time\"\n                            },\n                            \"updatedAt\": {\n                                \"type\": \"string\",\n                                \"format\": \"date-time\"\n                            },\n                            \"__v\": {\n                                \"type\": \"integer\"\n                            }\n                        }\n                    },\n                    \"quantity\": {\n                        \"type\": \"integer\"\n                    },\n                    \"totalAmount\": {\n                        \"type\": \"number\"\n                    },\n                    \"createdAt\": {\n                        \"type\": \"string\",\n                        \"format\": \"date-time\"\n                    },\n                    \"updatedAt\": {\n                        \"type\": \"string\",\n                        \"format\": \"date-time\"\n                    },\n                    \"__v\": {\n                        \"type\": \"integer\"\n                    }\n                },\n                \"required\": [\"_id\", \"quantity\", \"totalAmount\", \"createdAt\", \"updatedAt\", \"__v\"]\n            }\n        }\n    },\n    \"required\": [\"sales\"]\n}\n\n</code></pre>\n","urlObject":{"path":["api","sales","66423d0afc3a5b5db696d6bf"],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"9e14b707-5424-4c9c-ad62-f9dbb47e981c","name":"Get Sales","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"375","uuid":"d4cdbfad-97d7-419e-a969-504eba439e07"},{"key":"Content-Type","value":"application/json; charset=utf-8","uuid":"905204bf-74fc-46b7-9dc9-ac2853e3730a"},{"key":"Date","value":"Mon, 13 May 2024 16:17:45 GMT","uuid":"d5f66304-8838-4a78-a274-d0c9c654b6bd"},{"key":"Etag","value":"W/\"177-ZOiRV1k095NEt3PDSlqi4jdKEoQ\"","uuid":"f0f1caf0-d677-4c3b-9fea-80e8403328ca"},{"key":"Replit-Cluster","value":"picard","uuid":"d6092abd-6308-4ac5-9af4-dd38d6cba0ba"},{"key":"Vary","value":"Origin","uuid":"94df734f-a039-41dd-be89-5d7d54eb1250"},{"key":"X-Powered-By","value":"Express","uuid":"8fb73199-c83e-4082-8621-e5cfc4ebfab8"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"dc9a12cb-809b-447c-95c8-eb968e2a4252"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex","uuid":"dc9a12cb-809b-447c-95c8-eb968e2a4252"}],"cookie":[],"responseTime":null,"body":"{\n    \"sales\": [\n        {\n            \"_id\": \"66423d0afc3a5b5db696d6bf\",\n            \"productSold\": {\n                \"_id\": \"6642392984bed11e0b93575d\",\n                \"productName\": \"Surf XL Powder\",\n                \"quantity\": 100,\n                \"price\": 20,\n                \"category\": \"Laundry\",\n                \"createdAt\": \"2024-05-13T16:00:41.906Z\",\n                \"updatedAt\": \"2024-05-13T16:00:41.906Z\",\n                \"__v\": 0\n            },\n            \"quantity\": 2,\n            \"totalAmount\": 40,\n            \"createdAt\": \"2024-05-13T16:17:14.797Z\",\n            \"updatedAt\": \"2024-05-13T16:17:14.797Z\",\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"93409cf3-d730-422e-9f6b-0a5806af91af","name":"Get Sales By Id","originalRequest":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales/66423d0afc3a5b5db696d6bf"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"201"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 16:18:50 GMT"},{"key":"Etag","value":"W/\"c9-orxDZaAgRTHD5X1oUSYnZPKN+HY\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"sales\": {\n        \"_id\": \"66423d0afc3a5b5db696d6bf\",\n        \"productSold\": \"6642392984bed11e0b93575d\",\n        \"quantity\": 2,\n        \"totalAmount\": 40,\n        \"createdAt\": \"2024-05-13T16:17:14.797Z\",\n        \"updatedAt\": \"2024-05-13T16:17:14.797Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e73e113c-0c81-4b67-9d6c-179d37c54262"},{"name":"Delete Sales","id":"6f5e8f9d-f622-4e5b-8382-b959f60d3b18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host-inventory}}/api/sales/664391ce2057b89b6d5388b2","description":"<p>This endpoint sends an HTTP DELETE request to the specified URL to delete a sales record with the given ID.</p>\n<p>The response of this request is a JSON schema representing the structure of the response data.</p>\n","urlObject":{"path":["api","sales","664391ce2057b89b6d5388b2"],"host":["{{host-inventory}}"],"query":[],"variable":[]}},"response":[{"id":"e07bdc2d-7a6e-42c4-80ab-e0fd62a65cbd","name":"Delete Sales","originalRequest":{"method":"DELETE","header":[],"url":"{{host-inventory}}/api/sales/66423d9ffc3a5b5db696d6c8"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 13 May 2024 16:20:56 GMT"},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6f5e8f9d-f622-4e5b-8382-b959f60d3b18"},{"name":"Get sales by date range","id":"d44d73da-d89f-404b-a600-b8e3a76d2260","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host-inventory}}/api/sales/date-range/?startDate=2024-05-13&endDate=2024-05-15","description":"<p>The endpoint retrieves sales data within a specified date range.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sales\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"_id\": {\n            \"type\": \"string\"\n          },\n          \"productSold\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"_id\": {\n                \"type\": \"string\"\n              },\n              \"productName\": {\n                \"type\": \"string\"\n              },\n              \"quantity\": {\n                \"type\": \"integer\"\n              },\n              \"price\": {\n                \"type\": \"number\"\n              },\n              \"category\": {\n                \"type\": \"string\"\n              },\n              \"createdAt\": {\n                \"type\": \"string\"\n              },\n              \"updatedAt\": {\n                \"type\": \"string\"\n              },\n              \"__v\": {\n                \"type\": \"integer\"\n              }\n            }\n          },\n          \"quantity\": {\n            \"type\": \"integer\"\n          },\n          \"totalAmount\": {\n            \"type\": \"number\"\n          },\n          \"createdAt\": {\n            \"type\": \"string\"\n          },\n          \"updatedAt\": {\n            \"type\": \"string\"\n          },\n          \"__v\": {\n            \"type\": \"integer\"\n          }\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["api","sales","date-range",""],"host":["{{host-inventory}}"],"query":[{"key":"startDate","value":"2024-05-13"},{"key":"endDate","value":"2024-05-15"}],"variable":[]}},"response":[{"id":"9b34a590-ca9b-42a8-b589-e707a440ea49","name":"Get sales by date range","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host-inventory}}/api/sales/date-range/?startDate=2024-05-13&endDate=2024-05-15","host":["{{host-inventory}}"],"path":["api","sales","date-range",""],"query":[{"key":"startDate","value":"2024-05-13"},{"key":"endDate","value":"2024-05-15"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"731"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 17:37:51 GMT"},{"key":"Etag","value":"W/\"2db-czDZYinvHY+60ZLUin0W+gd1rOI\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"sales\": [\n        {\n            \"_id\": \"66423d0afc3a5b5db696d6bf\",\n            \"productSold\": {\n                \"_id\": \"6642392984bed11e0b93575d\",\n                \"productName\": \"Surf XL Powder\",\n                \"quantity\": 100,\n                \"price\": 20,\n                \"category\": \"Laundry\",\n                \"createdAt\": \"2024-05-13T16:00:41.906Z\",\n                \"updatedAt\": \"2024-05-13T16:00:41.906Z\",\n                \"__v\": 0\n            },\n            \"quantity\": 2,\n            \"totalAmount\": 40,\n            \"createdAt\": \"2024-05-13T16:17:14.797Z\",\n            \"updatedAt\": \"2024-05-13T16:17:14.797Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66423d9bfc3a5b5db696d6c5\",\n            \"productSold\": {\n                \"_id\": \"6642382784bed11e0b935755\",\n                \"productName\": \"Dove Soap\",\n                \"quantity\": 200,\n                \"price\": 20,\n                \"category\": \"Bath\",\n                \"createdAt\": \"2024-05-13T15:56:23.918Z\",\n                \"updatedAt\": \"2024-05-13T15:59:04.209Z\",\n                \"__v\": 0\n            },\n            \"quantity\": 2,\n            \"totalAmount\": 40,\n            \"createdAt\": \"2024-05-13T16:19:39.176Z\",\n            \"updatedAt\": \"2024-05-13T16:19:39.176Z\",\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"d934bb86-a805-4cd9-8c4f-1e70392f6958","name":"Get sales by date range","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host-inventory}}/api/sales/date-range/?startDate=2024-05-12&endDate=2024-05-13","host":["{{host-inventory}}"],"path":["api","sales","date-range",""],"query":[{"key":"startDate","value":"2024-05-12"},{"key":"endDate","value":"2024-05-13"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"28"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 13 May 2024 17:38:58 GMT"},{"key":"Etag","value":"W/\"1c-KNgP7JkRBnCvyH8FAhVdtcxuZXI\""},{"key":"Replit-Cluster","value":"picard"},{"key":"Vary","value":"Origin"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"},{"key":"X-Robots-Tag","value":"none, noindex, noarchive, nofollow, nositelinkssearchbox, noimageindex"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No sales found\"\n}"}],"_postman_id":"d44d73da-d89f-404b-a600-b8e3a76d2260"}]}