{"info":{"_postman_id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","name":"Inventory Control System API documentation","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"32179535","collectionId":"1b1286ad-9d84-4432-91e9-acdafa9a8883","publishedId":"2sAYBSkYmW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-21T23:21:33.000Z"},"item":[{"name":"Authentication","item":[{"name":"Admin Login","id":"624ba2c8-58c0-4ba6-97e8-744da4e72403","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"sumanbisunkhe304@gmail.com\",  \r\n    \"password\":\"suman123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login","description":"<h3 id=\"login-api\">Login API</h3>\n<p>This API endpoint is used to authenticate and login a user.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>identifier</code> (string) - The identifier of the user (e.g. email or username).</p>\n</li>\n<li><p><code>password</code> (string) - The password of the user.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is in JSON format with the following properties:</p>\n<ul>\n<li><p><code>message</code> (string) - A message related to the authentication.</p>\n</li>\n<li><p><code>status</code> (integer) - The status of the authentication process.</p>\n</li>\n<li><p><code>token</code> (string) - The authentication token for the user.</p>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\",\n    \"status\": 0,\n    \"token\": \"\"\n}\n\n</code></pre>\n<p>This endpoint is used to authenticate and login the user.</p>\n<h4 id=\"request-body-1\">Request Body</h4>\n<ul>\n<li><p><code>identifier</code> (text) : The identifier or email of the user.</p>\n</li>\n<li><p><code>password</code> (text) : The password of the user.</p>\n</li>\n</ul>\n<h4 id=\"response-1\">Response</h4>\n<ul>\n<li><p><code>message</code> : A message indicating the status of the authentication.</p>\n</li>\n<li><p><code>status</code> : The status of the authentication process.</p>\n</li>\n<li><p><code>token</code> : The authentication token for the user.</p>\n</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\",\n    \"status\": 0,\n    \"token\": \"\"\n}\n\n</code></pre>\n<p>The endpoint allows users to authenticate and obtain a token for accessing protected resources.</p>\n<h4 id=\"request-body-2\">Request Body</h4>\n<ul>\n<li><p><code>identifier</code> (string) - The user's email, phoneNumber or username.</p>\n</li>\n<li><p><code>password</code> (string) - The user's password.</p>\n</li>\n</ul>\n<h4 id=\"response-2\">Response</h4>\n<ul>\n<li><p><code>message</code> (string) - A message related to the authentication status.</p>\n</li>\n<li><p><code>status</code> (integer) - The status of the authentication process.</p>\n</li>\n<li><p><code>token</code> (string) - The authentication token for accessing protected resources.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ca20f6dd-aa67-4256-a5c4-9c488d3749f1","name":"Admin Login _ Success (using email)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"sumanbisunkhe304@gmail.com\",  \r\n    \"password\":\"suman123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 13:49:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"status\": 200,\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJST0xFX0FETUlOIl0sInN1YiI6IlN1bWFuIiwiaWF0IjoxNzMyMTk2OTgzLCJleHAiOjE3MzIyMzI5ODN9.r8OYPvBZzmjh27udEah7ahzCT4xylUlgwgbSToRo38g\"\n}"},{"id":"da9437d9-8d55-4771-8d91-5ce1b4c46ddb","name":"Admin Login_ Success (using phoneNumber)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"9840948274\",  \r\n    \"password\":\"suman123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 13:53:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"status\": 200,\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJST0xFX0FETUlOIl0sInN1YiI6IlN1bWFuIiwiaWF0IjoxNzMyMTk3MTkyLCJleHAiOjE3MzIyMzMxOTJ9.bVTwDc9Lup0mNs5Ns6uHxXRfWOO_ff7Bz46tF13m1_M\"\n}"},{"id":"ed21cee0-adc5-4676-9d36-0c9a7091a423","name":"Admin Login_Success (using username)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"suman\",  \r\n    \"password\":\"suman123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 13:53:44 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"status\": 200,\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJST0xFX0FETUlOIl0sInN1YiI6IlN1bWFuIiwiaWF0IjoxNzMyMTk3MjI0LCJleHAiOjE3MzIyMzMyMjR9.0k0pM8cEfLn0Z5MyXU6_7wf1hEaaieu-aAtotQF1gVw\"\n}"},{"id":"06ae7f79-3a42-45bb-b85f-cb1172095159","name":"Admin Login_ Failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"sumanbisunkhe304@gmail.com\",  \r\n    \"password\":\"suman12\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 13:54:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid credentials\",\n    \"status\": 401\n}"}],"_postman_id":"624ba2c8-58c0-4ba6-97e8-744da4e72403"},{"name":"Owner Login","event":[{"listen":"test","script":{"id":"57bb7f92-3fc3-47d5-9c7a-a1cba024e427","exec":[""],"type":"text/javascript","packages":{}}}],"id":"a0521ac7-cd20-467a-8ce6-a04e1e8b4558","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"GalGadot\",  \r\n    \"password\":\"GalGadot\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login","description":"<h3 id=\"apiauthlogin\">/api/auth/login</h3>\n<p>This endpoint is used to authenticate and login a user.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>identifier</code> (text, required): The identifier of the user.</p>\n</li>\n<li><p><code>password</code> (text, required): The password of the user.</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<p>The response object includes the following properties:</p>\n<ul>\n<li><p><code>message</code> (string): A message related to the authentication process.</p>\n</li>\n<li><p><code>status</code> (integer): The status code of the authentication process.</p>\n</li>\n<li><p><code>token</code> (string): The authentication token for the user.</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"Login successful\",\n    \"status\": 200,\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJST0xFX09XTkVSIl0sInN1YiI6IkdhbEdhZG90IiwiaWF0IjoxNzMyMjA3MDAyLCJleHAiOjE3MzIyNDMwMDJ9.90O8cinxr77Zf_CjQ933p3pBsWuLtojYvBsRQg_-Kow\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7d915131-5800-4c95-822f-71e6a6df839b","name":"Owner Login_ Success (using email)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"galgadot@gmail.com\",  \r\n    \"password\":\"GalGadot\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 13:57:11 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"status\": 200,\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJST0xFX09XTkVSIl0sInN1YiI6IkdhbEdhZG90IiwiaWF0IjoxNzMyMTk3NDMxLCJleHAiOjE3MzIyMzM0MzF9.wCowvtF0mvL97C-PHBi_fVdVUQ3dhwyudH7YqrbtYoQ\"\n}"},{"id":"450a0109-1acb-41ce-b3b1-37bd33bcf836","name":"Owner Login_Success (using phoneNumber)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"6543210000\",  \r\n    \"password\":\"GalGadot\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 13:58:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"status\": 200,\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJST0xFX09XTkVSIl0sInN1YiI6IkdhbEdhZG90IiwiaWF0IjoxNzMyMTk3NTIwLCJleHAiOjE3MzIyMzM1MjB9.glvuHrZhvVVNbJT6Z_YZoP5jo2qBMQ8CNZbe_RfCL-0\"\n}"},{"id":"ff124874-2694-46c6-86d7-399b209058b1","name":"Owner Login_ Success (using username)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"GalGadot\",  \r\n    \"password\":\"GalGadot\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 13:57:47 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"status\": 200,\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJST0xFX09XTkVSIl0sInN1YiI6IkdhbEdhZG90IiwiaWF0IjoxNzMyMTk3NDY3LCJleHAiOjE3MzIyMzM0Njd9.adBqcJ_pxAWETcoB5EwN6teZPcbctihoFbnNYlQkOFo\"\n}"},{"id":"193d3fad-16f7-4c0a-8080-b3e7b9b461d6","name":"Owner Login_Failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"galgadot@gmail.com\",  \r\n    \"password\":\"GalGadot123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:00:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid credentials\",\n    \"status\": 401\n}"},{"id":"10c2b06a-12b7-40c8-892a-ac7a81ecfe84","name":"Owner Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"GalGadot\",  \r\n    \"password\":\"GalGadot\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 16:34:48 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"status\": 200,\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJST0xFX09XTkVSIl0sInN1YiI6IkdhbEdhZG90IiwiaWF0IjoxNzMyMjA2ODg4LCJleHAiOjE3MzIyNDI4ODh9.DOfU5xr97RXnTmFv-rlPfhoIYifZt8afR6LTQe7-b_c\"\n}"}],"_postman_id":"a0521ac7-cd20-467a-8ce6-a04e1e8b4558"}],"id":"e0471978-404c-4662-b5e7-0e4498dffa1f","description":"<p>This folder contains endpoints for system access control and user authentication. It manages different user roles and their access to the system.</p>\n<p><strong>Available Endpoints:</strong></p>\n<ul>\n<li><p><strong>POST Admin Login</strong></p>\n<ul>\n<li><p>Handles administrator authentication</p>\n</li>\n<li><p>Provides access to administrative functions</p>\n</li>\n</ul>\n</li>\n<li><p><strong>POST Owner Login</strong></p>\n<ul>\n<li><p>Manages owner-level authentication</p>\n</li>\n<li><p>Grants access to owner-specific features</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"e0471978-404c-4662-b5e7-0e4498dffa1f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","name":"Inventory Control System API documentation","type":"collection"}}},{"name":"CSV","item":[{"name":"import products through csv","id":"e06f1925-336d-4f26-8854-68a680e907e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/C:/Users/sbisu/Documents/Inventroy control products.csv"},{"key":"filePath","value":"D:\\JAVA\\inventory-control-system exports","type":"text"}]},"url":"http://localhost:8080/api/csv/import/products","description":"<h3 id=\"import-products-from-csv\">Import Products from CSV</h3>\n<p>This endpoint allows you to import products from a CSV file.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>file</code> (file): The CSV file containing the products to be imported.</p>\n</li>\n<li><p><code>filePath</code> (text): The file path of the CSV file.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful import, the response will include:</p>\n<ul>\n<li><p><code>importedProducts</code> (array): An array of imported products.</p>\n</li>\n<li><p><code>message</code> (string): A message indicating the import status.</p>\n</li>\n<li><p><code>totalImported</code> (number): The total number of products imported.</p>\n</li>\n<li><p><code>status</code> (number): The status of the import process.</p>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"importedProducts\": [],\n    \"message\": \"\",\n    \"totalImported\": 0,\n    \"status\": 0\n}\n\n</code></pre>\n<h4 id=\"example-product-object\">Example Product Object</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"\",\n    \"sku\": \"\",\n    \"price\": 0,\n    \"quantity\": 0,\n    \"minStockLevel\": 0,\n    \"category\": \"\",\n    \"status\": \"\",\n    \"supplierId\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","csv","import","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"80b03fc7-3b2d-4c02-a3bb-41980bdfa94a","name":"import products through csv_Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/C:/Users/sbisu/Documents/Inventroy control products.csv"},{"key":"filePath","value":"D:\\JAVA\\inventory-control-system exports","type":"text"}]},"url":"http://localhost:8080/api/csv/import/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:33:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"Apple iPhone 14\",\n        \"sku\": \"APL14\",\n        \"price\": 999.99,\n        \"quantity\": 20,\n        \"minStockLevel\": 5,\n        \"category\": \"ELECTRONICS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Samsung Galaxy S23\",\n        \"sku\": \"SGS23\",\n        \"price\": 849.99,\n        \"quantity\": 15,\n        \"minStockLevel\": 3,\n        \"category\": \"ELECTRONICS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Google Pixel 8\",\n        \"sku\": \"GPL8\",\n        \"price\": 749.99,\n        \"quantity\": 25,\n        \"minStockLevel\": 4,\n        \"category\": \"ELECTRONICS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Dell Inspiron Laptop\",\n        \"sku\": \"DINL\",\n        \"price\": 599.99,\n        \"quantity\": 10,\n        \"minStockLevel\": 3,\n        \"category\": \"ELECTRONICS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Nike Air Max\",\n        \"sku\": \"NAMX\",\n        \"price\": 199.99,\n        \"quantity\": 30,\n        \"minStockLevel\": 5,\n        \"category\": \"FASHION\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Adidas Ultraboost\",\n        \"sku\": \"AUB\",\n        \"price\": 179.99,\n        \"quantity\": 12,\n        \"minStockLevel\": 4,\n        \"category\": \"FASHION\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Puma Running Shoes\",\n        \"sku\": \"PRS\",\n        \"price\": 99.99,\n        \"quantity\": 40,\n        \"minStockLevel\": 6,\n        \"category\": \"FASHION\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Sony 4K TV\",\n        \"sku\": \"S4KT\",\n        \"price\": 699.99,\n        \"quantity\": 5,\n        \"minStockLevel\": 2,\n        \"category\": \"ELECTRONICS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Lego City Set\",\n        \"sku\": \"LCS\",\n        \"price\": 49.99,\n        \"quantity\": 50,\n        \"minStockLevel\": 10,\n        \"category\": \"TOYS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Fisher-Price Baby Gym\",\n        \"sku\": \"FPBG\",\n        \"price\": 29.99,\n        \"quantity\": 35,\n        \"minStockLevel\": 8,\n        \"category\": \"TOYS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Cuisinart Blender\",\n        \"sku\": \"CBL\",\n        \"price\": 89.99,\n        \"quantity\": 20,\n        \"minStockLevel\": 5,\n        \"category\": \"HOME\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Kitchenaid Mixer\",\n        \"sku\": \"KAM\",\n        \"price\": 349.99,\n        \"quantity\": 12,\n        \"minStockLevel\": 4,\n        \"category\": \"HOME\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Harry Potter Book 1\",\n        \"sku\": \"HPB1\",\n        \"price\": 19.99,\n        \"quantity\": 100,\n        \"minStockLevel\": 20,\n        \"category\": \"BOOKS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"The Alchemist\",\n        \"sku\": \"ALCH\",\n        \"price\": 14.99,\n        \"quantity\": 75,\n        \"minStockLevel\": 10,\n        \"category\": \"BOOKS\",\n        \"status\": \"DISCONTINUED\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Samsung Washing Machine\",\n        \"sku\": \"SWM\",\n        \"price\": 499.99,\n        \"quantity\": 8,\n        \"minStockLevel\": 2,\n        \"category\": \"HOME\",\n        \"status\": \"OUT_OF_STOCK\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"BMW Toy Car\",\n        \"sku\": \"BMWTC\",\n        \"price\": 24.99,\n        \"quantity\": 40,\n        \"minStockLevel\": 10,\n        \"category\": \"TOYS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Kindle Paperwhite\",\n        \"sku\": \"KPW\",\n        \"price\": 139.99,\n        \"quantity\": 50,\n        \"minStockLevel\": 10,\n        \"category\": \"ELECTRONICS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Maybelline Lipstick\",\n        \"sku\": \"ML\",\n        \"price\": 9.99,\n        \"quantity\": 200,\n        \"minStockLevel\": 50,\n        \"category\": \"BEAUTY\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Dove Shampoo\",\n        \"sku\": \"DS\",\n        \"price\": 5.99,\n        \"quantity\": 150,\n        \"minStockLevel\": 30,\n        \"category\": \"BEAUTY\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Tesla Model S Diecast\",\n        \"sku\": \"TMSD\",\n        \"price\": 39.99,\n        \"quantity\": 25,\n        \"minStockLevel\": 5,\n        \"category\": \"TOYS\",\n        \"status\": \"DISCONTINUED\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Fitbit Versa\",\n        \"sku\": \"FV\",\n        \"price\": 199.99,\n        \"quantity\": 30,\n        \"minStockLevel\": 5,\n        \"category\": \"HEALTH\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Garmin Forerunner\",\n        \"sku\": \"GFR\",\n        \"price\": 249.99,\n        \"quantity\": 15,\n        \"minStockLevel\": 4,\n        \"category\": \"HEALTH\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Spalding Basketball\",\n        \"sku\": \"SB\",\n        \"price\": 29.99,\n        \"quantity\": 50,\n        \"minStockLevel\": 20,\n        \"category\": \"SPORTS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Nerf Gun\",\n        \"sku\": \"NERF\",\n        \"price\": 34.99,\n        \"quantity\": 60,\n        \"minStockLevel\": 25,\n        \"category\": \"TOYS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Camping Tent\",\n        \"sku\": \"CT\",\n        \"price\": 129.99,\n        \"quantity\": 20,\n        \"minStockLevel\": 10,\n        \"category\": \"SPORTS\",\n        \"status\": \"OUT_OF_STOCK\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Canon DSLR Camera\",\n        \"sku\": \"CDSL\",\n        \"price\": 999.99,\n        \"quantity\": 10,\n        \"minStockLevel\": 2,\n        \"category\": \"ELECTRONICS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Leather Jacket\",\n        \"sku\": \"LJ\",\n        \"price\": 199.99,\n        \"quantity\": 15,\n        \"minStockLevel\": 5,\n        \"category\": \"FASHION\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Running Watch\",\n        \"sku\": \"RW\",\n        \"price\": 129.99,\n        \"quantity\": 25,\n        \"minStockLevel\": 5,\n        \"category\": \"SPORTS\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    },\n    {\n        \"name\": \"Organic Honey\",\n        \"sku\": \"OH\",\n        \"price\": 12.99,\n        \"quantity\": 100,\n        \"minStockLevel\": 20,\n        \"category\": \"GROCERY\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 2\n    },\n    {\n        \"name\": \"Chocolate Chip Cookies\",\n        \"sku\": \"CCC\",\n        \"price\": 4.99,\n        \"quantity\": 500,\n        \"minStockLevel\": 100,\n        \"category\": \"GROCERY\",\n        \"status\": \"ACTIVE\",\n        \"supplierId\": 1\n    }\n]"},{"id":"9d625fb6-15aa-40d9-90ff-81faf220abce","name":"import products through csv_Failure (empty file)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/sbisu/Documents/Inventroy control products.csv"],"value":null},{"key":"filePath","value":"D:\\JAVA\\inventory-control-system exports","type":"text"}]},"url":"http://localhost:8080/api/csv/import/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:57:13 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The uploaded file is empty.\",\n    \"status\": 400\n}"},{"id":"9f63e5bf-54ae-4df2-acc3-6cdefe417a8d","name":"import products through csv_Failure (unauthorized)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/sbisu/Documents/Inventroy control products.csv"],"src":"/C:/Users/sbisu/Documents/Inventroy control products.csv"},{"key":"filePath","value":"D:\\JAVA\\inventory-control-system exports","type":"text"}]},"url":"http://localhost:8080/api/csv/import/products"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"142"},{"key":"Date","value":"Thu, 21 Nov 2024 15:35:36 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T21:20:36.643238\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"e06f1925-336d-4f26-8854-68a680e907e7"},{"name":"import orders through csv","id":"84406e6c-6c9c-4adc-ba10-50ff29de7014","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/sbisu/Documents/Inventory Control System Orders.csv"],"src":"/C:/Users/sbisu/Documents/Inventory Control System Orders.csv"}]},"url":"http://localhost:8080/api/csv/import/orders","description":"<h3 id=\"import-orders-via-csv\">Import Orders via CSV</h3>\n<p>This endpoint allows you to import orders from a CSV file.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>file</code> (file): The CSV file containing the orders to be imported.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"data\": [\n        {\n            \"id\": 0,\n            \"productId\": 0,\n            \"supplierId\": 0,\n            \"quantity\": 0,\n            \"totalPrice\": 0,\n            \"status\": \"\"\n        }\n    ],\n    \"message\": \"\",\n    \"status\": \"\"\n}\n\n</code></pre>\n<p>The <code>data</code> field contains an array of objects representing the imported orders, where each object has fields <code>id</code>, <code>productId</code>, <code>supplierId</code>, <code>quantity</code>, <code>totalPrice</code>, and <code>status</code>. The <code>message</code> and <code>status</code> fields provide additional information about the import operation.</p>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"data\": [\n        {\n            \"id\": 0,\n            \"productId\": 0,\n            \"supplierId\": 0,\n            \"quantity\": 0,\n            \"totalPrice\": 0,\n            \"status\": null\n        }\n    ],\n    \"message\": \"\",\n    \"status\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","csv","import","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6990aeb1-4dea-4461-bb26-8b13fe1e63ce","name":"import orders through csv_Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/C:/Users/sbisu/Documents/Inventory Control System Orders.csv"},{"key":"filepath","value":"D:\\JAVA\\inventory-control-system exports","type":"text"}]},"url":"http://localhost:8080/api/csv/import/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 16:12:28 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"productId\": 1,\n            \"supplierId\": 1,\n            \"quantity\": 10,\n            \"totalPrice\": 2499.99,\n            \"status\": null\n        },\n        {\n            \"id\": 2,\n            \"productId\": 2,\n            \"supplierId\": 2,\n            \"quantity\": 5,\n            \"totalPrice\": 1699.98,\n            \"status\": null\n        },\n        {\n            \"id\": 3,\n            \"productId\": 3,\n            \"supplierId\": 1,\n            \"quantity\": 2,\n            \"totalPrice\": 749.99,\n            \"status\": null\n        },\n        {\n            \"id\": 4,\n            \"productId\": 4,\n            \"supplierId\": 2,\n            \"quantity\": 7,\n            \"totalPrice\": 4199.93,\n            \"status\": null\n        },\n        {\n            \"id\": 5,\n            \"productId\": 5,\n            \"supplierId\": 1,\n            \"quantity\": 3,\n            \"totalPrice\": 599.97,\n            \"status\": null\n        },\n        {\n            \"id\": 6,\n            \"productId\": 6,\n            \"supplierId\": 2,\n            \"quantity\": 8,\n            \"totalPrice\": 1439.92,\n            \"status\": null\n        },\n        {\n            \"id\": 7,\n            \"productId\": 7,\n            \"supplierId\": 1,\n            \"quantity\": 15,\n            \"totalPrice\": 1499.85,\n            \"status\": null\n        },\n        {\n            \"id\": 8,\n            \"productId\": 8,\n            \"supplierId\": 2,\n            \"quantity\": 1,\n            \"totalPrice\": 699.99,\n            \"status\": null\n        },\n        {\n            \"id\": 9,\n            \"productId\": 9,\n            \"supplierId\": 1,\n            \"quantity\": 12,\n            \"totalPrice\": 599.88,\n            \"status\": null\n        },\n        {\n            \"id\": 10,\n            \"productId\": 10,\n            \"supplierId\": 2,\n            \"quantity\": 20,\n            \"totalPrice\": 599.8,\n            \"status\": null\n        },\n        {\n            \"id\": 11,\n            \"productId\": 11,\n            \"supplierId\": 1,\n            \"quantity\": 4,\n            \"totalPrice\": 359.96,\n            \"status\": null\n        },\n        {\n            \"id\": 12,\n            \"productId\": 12,\n            \"supplierId\": 2,\n            \"quantity\": 6,\n            \"totalPrice\": 2099.94,\n            \"status\": null\n        },\n        {\n            \"id\": 13,\n            \"productId\": 13,\n            \"supplierId\": 1,\n            \"quantity\": 25,\n            \"totalPrice\": 499.75,\n            \"status\": null\n        },\n        {\n            \"id\": 14,\n            \"productId\": 14,\n            \"supplierId\": 2,\n            \"quantity\": 30,\n            \"totalPrice\": 449.7,\n            \"status\": null\n        },\n        {\n            \"id\": 15,\n            \"productId\": 15,\n            \"supplierId\": 1,\n            \"quantity\": 2,\n            \"totalPrice\": 999.98,\n            \"status\": null\n        },\n        {\n            \"id\": 16,\n            \"productId\": 16,\n            \"supplierId\": 2,\n            \"quantity\": 10,\n            \"totalPrice\": 249.9,\n            \"status\": null\n        },\n        {\n            \"id\": 17,\n            \"productId\": 17,\n            \"supplierId\": 1,\n            \"quantity\": 5,\n            \"totalPrice\": 699.95,\n            \"status\": null\n        },\n        {\n            \"id\": 18,\n            \"productId\": 18,\n            \"supplierId\": 2,\n            \"quantity\": 50,\n            \"totalPrice\": 499.5,\n            \"status\": null\n        },\n        {\n            \"id\": 19,\n            \"productId\": 19,\n            \"supplierId\": 1,\n            \"quantity\": 8,\n            \"totalPrice\": 47.92,\n            \"status\": null\n        },\n        {\n            \"id\": 20,\n            \"productId\": 20,\n            \"supplierId\": 2,\n            \"quantity\": 10,\n            \"totalPrice\": 399.9,\n            \"status\": null\n        },\n        {\n            \"id\": 21,\n            \"productId\": 1,\n            \"supplierId\": 1,\n            \"quantity\": 6,\n            \"totalPrice\": 1499.94,\n            \"status\": null\n        },\n        {\n            \"id\": 22,\n            \"productId\": 2,\n            \"supplierId\": 2,\n            \"quantity\": 4,\n            \"totalPrice\": 679.96,\n            \"status\": null\n        },\n        {\n            \"id\": 23,\n            \"productId\": 3,\n            \"supplierId\": 1,\n            \"quantity\": 9,\n            \"totalPrice\": 3374.91,\n            \"status\": null\n        },\n        {\n            \"id\": 24,\n            \"productId\": 4,\n            \"supplierId\": 2,\n            \"quantity\": 12,\n            \"totalPrice\": 7199.88,\n            \"status\": null\n        },\n        {\n            \"id\": 25,\n            \"productId\": 5,\n            \"supplierId\": 1,\n            \"quantity\": 11,\n            \"totalPrice\": 2199.89,\n            \"status\": null\n        },\n        {\n            \"id\": 26,\n            \"productId\": 6,\n            \"supplierId\": 2,\n            \"quantity\": 20,\n            \"totalPrice\": 3599.8,\n            \"status\": null\n        },\n        {\n            \"id\": 27,\n            \"productId\": 7,\n            \"supplierId\": 1,\n            \"quantity\": 8,\n            \"totalPrice\": 799.92,\n            \"status\": null\n        },\n        {\n            \"id\": 28,\n            \"productId\": 8,\n            \"supplierId\": 2,\n            \"quantity\": 3,\n            \"totalPrice\": 2099.97,\n            \"status\": null\n        },\n        {\n            \"id\": 29,\n            \"productId\": 9,\n            \"supplierId\": 1,\n            \"quantity\": 5,\n            \"totalPrice\": 249.95,\n            \"status\": null\n        },\n        {\n            \"id\": 30,\n            \"productId\": 10,\n            \"supplierId\": 2,\n            \"quantity\": 9,\n            \"totalPrice\": 539.91,\n            \"status\": null\n        }\n    ],\n    \"message\": \"Orders imported successfully.\",\n    \"status\": \"success\"\n}"},{"id":"7c72070d-3555-490f-90ac-f2993dce3bf9","name":"import orders through csv_Failure (empty file)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/sbisu/Documents/Inventory Control System Orders.csv"],"value":null},{"key":"filepath","value":"D:\\JAVA\\inventory-control-system exports","type":"text"}]},"url":"http://localhost:8080/api/csv/import/orders"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 16:08:41 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The uploaded file is empty.\",\n    \"status\": \"error\"\n}"},{"id":"27bd8d05-65a2-4843-bdde-38247b153934","name":"import orders through csv_Failure (unauthorised)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/C:/Users/sbisu/Documents/Inventory Control System Orders.csv"},{"key":"filepath","value":"D:\\JAVA\\inventory-control-system exports","type":"text"}]},"url":"http://localhost:8080/api/csv/import/orders"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 16:12:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T21:57:57.257828900\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"84406e6c-6c9c-4adc-ba10-50ff29de7014"},{"name":"Export products in CSV","id":"60f64e9a-ca11-451d-accb-3991860296cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/api/csv/export/products","description":"<h3 id=\"export-products-to-csv\">Export Products to CSV</h3>\n<p>This endpoint allows you to export products to a CSV file.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>No request body is required for this endpoint.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is in JSON format and includes the following fields:</p>\n<ul>\n<li><p><code>filePath</code> (string): The file path of the exported CSV file.</p>\n</li>\n<li><p><code>message</code> (string): Any additional message related to the export process.</p>\n</li>\n<li><p><code>status</code> (string): The status of the export process.</p>\n</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"filePath\": \"\",\n  \"message\": \"\",\n  \"status\": \"\"\n}\n\n</code></pre>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"filePath\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"status\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","csv","export","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5cefa24e-c62d-465b-b6ac-b30520e389fc","name":"Export products in CSV_Success","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/api/csv/export/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 16:27:31 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"filePath\": \"D:\\\\JAVA\\\\inventory-control-system-exports\\\\products-1732206450991.csv\",\n    \"message\": \"Products exported successfully.\",\n    \"status\": \"success\"\n}"},{"id":"0a953ef1-0cf7-4c6f-a10c-52f63560da53","name":"Export products in CSV_Failure (unauthorised)","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/api/csv/export/products"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 16:27:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T22:12:57.245246100\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"60f64e9a-ca11-451d-accb-3991860296cc"},{"name":"Export orders in CSV","id":"f50fabac-3e50-4465-b0cd-40a4bb686ab3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/api/csv/export/orders","description":"<h3 id=\"export-orders-to-csv\">Export Orders to CSV</h3>\n<p>This endpoint allows you to export orders to a CSV file.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>No request body parameters are required for this request.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is in JSON format and follows the schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"filePath\": \"string\",\n    \"message\": \"string\",\n    \"status\": \"string\"\n}\n\n</code></pre>\n<p>The response includes the following fields:</p>\n<ul>\n<li><p><code>filePath</code>: The path to the exported CSV file.</p>\n</li>\n<li><p><code>message</code>: A message related to the export process.</p>\n</li>\n<li><p><code>status</code>: The status of the export process.</p>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"filePath\": \"example/path/to/exported/file.csv\",\n    \"message\": \"Export successful\",\n    \"status\": \"success\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","csv","export","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a286c37b-2ccc-444a-b9f7-4b4064898a22","name":"Export orders in CSV_Success","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/api/csv/export/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 16:30:46 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"filePath\": \"D:\\\\JAVA\\\\inventory-control-system-exports\\\\orders-1732206645924.csv\",\n    \"message\": \"Orders exported successfully.\",\n    \"status\": \"success\"\n}"},{"id":"87b18090-a1fc-4d93-8bda-77f7c6abb4aa","name":"Export orders in CSV_Failure (unauthorised)","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/api/csv/export/orders"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 16:31:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T22:16:16.863202400\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"f50fabac-3e50-4465-b0cd-40a4bb686ab3"}],"id":"d2fafa5a-a8f9-494f-b864-072b09255669","description":"<p>This folder manages all bulk data operations through CSV file handling. It contains endpoints for importing and exporting data in CSV format.</p>\n<p><strong>Available Endpoints:</strong></p>\n<ul>\n<li><p><strong>POST Import products through csv</strong></p>\n<ul>\n<li><p>Allows bulk upload of product data</p>\n</li>\n<li><p>Processes product information from CSV files</p>\n</li>\n</ul>\n</li>\n<li><p><strong>POST Import orders through csv</strong></p>\n<ul>\n<li><p>Enables bulk import of order data</p>\n</li>\n<li><p>Processes order information from CSV files</p>\n</li>\n</ul>\n</li>\n<li><p><strong>POST Export products in CSV</strong></p>\n<ul>\n<li><p>Generates CSV files containing product data</p>\n</li>\n<li><p>Allows downloading of product information</p>\n</li>\n</ul>\n</li>\n<li><p><strong>POST Export orders in CSV</strong></p>\n<ul>\n<li><p>Creates CSV files with order information</p>\n</li>\n<li><p>Enables downloading of order data</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"d2fafa5a-a8f9-494f-b864-072b09255669","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","name":"Inventory Control System API documentation","type":"collection"}}},{"name":"Order","item":[{"name":"Create a New Order","id":"ddca4fc3-7e5e-457f-b00c-b0e4a5a1f5ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 1,\r\n  \"supplierId\": 1,\r\n  \"quantity\": 500\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/create","description":"<h3 id=\"create-order\">Create Order</h3>\n<p>The <code>Create Order</code> endpoint allows the client to place a new order for a product from a supplier.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>productId</code> (number): The ID of the product being ordered.</p>\n</li>\n<li><p><code>supplierId</code> (number): The ID of the supplier from whom the product is being ordered.</p>\n</li>\n<li><p><code>quantity</code> (number): The quantity of the product being ordered.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 201 Created</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n</ul>\n<p>Example Response Body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\",\n    \"status\": 0,\n    \"order\": {\n        \"id\": 0,\n        \"product\": {\n            \"id\": 0,\n            \"name\": \"\",\n            \"sku\": \"\",\n            \"price\": 0,\n            \"quantity\": 0,\n            \"minStockLevel\": 0,\n            \"category\": \"\",\n            \"status\": \"\",\n            \"supplier\": {\n                \"id\": 0,\n                \"name\": \"\",\n                \"email\": \"\",\n                \"phoneNumber\": \"\",\n                \"address\": \"\",\n                \"companyName\": \"\"\n            },\n            \"createdAt\": \"\",\n            \"updatedAt\": \"\"\n        },\n        \"quantity\": 0,\n        \"totalPrice\": 0,\n        \"createdAt\": \"\",\n        \"status\": \"\"\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"62a34e66-f3d8-4eba-becb-948d523580da","name":"Create a New Order 1_Sucess","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 1,\r\n  \"supplierId\": 1,\r\n  \"quantity\": 500\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:08:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order created successfully\",\n    \"status\": 201,\n    \"order\": {\n        \"id\": 1,\n        \"product\": {\n            \"id\": 1,\n            \"name\": \"Product 1\",\n            \"sku\": \"SKU00001\",\n            \"price\": 100.5,\n            \"quantity\": 50,\n            \"minStockLevel\": 20,\n            \"category\": \"BOOKS\",\n            \"status\": \"ACTIVE\",\n            \"supplier\": {\n                \"id\": 1,\n                \"name\": \"Supplier Name 1\",\n                \"email\": \"supplier1@yopmail.com\",\n                \"phoneNumber\": \"1234567891\",\n                \"address\": \"123 Street, City\",\n                \"companyName\": \"Supplier1 Company\"\n            },\n            \"createdAt\": \"2024-11-21T20:27:20.970307\"\n        },\n        \"quantity\": 500,\n        \"totalPrice\": 50250,\n        \"createdAt\": \"2024-11-21T20:53:34.2411114\",\n        \"status\": \"PENDING\"\n    }\n}"},{"id":"d9dcac76-dcbc-4af5-b117-61981826cd83","name":"Create a New Order 1_Failure (product not found)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 0,\r\n  \"supplierId\": 1,\r\n  \"quantity\": 500\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:06:54 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: Product not found\",\n    \"timestamp\": \"2024-11-21T20:51:54.1825435\",\n    \"status\": 500\n}"},{"id":"6b2d686d-e4f3-4377-b301-5b25e7c445da","name":"Create a New Order 1_Failure (invalid supplier)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 1,\r\n  \"supplierId\": 0,\r\n  \"quantity\": 500\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:07:43 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: Invalid supplier for the product.\",\n    \"timestamp\": \"2024-11-21T20:52:43.1677776\",\n    \"status\": 500\n}"},{"id":"25b9f99c-29b9-4bfb-8d6c-6019cadb786e","name":"Create a New Order 1_Failure (validation error)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 1,\r\n//   \"supplierId\": 1,\r\n  \"quantity\": 500\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:09:31 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        \"supplierId: Supplier ID is required\"\n    ],\n    \"status\": 400\n}"},{"id":"b6edc3d9-0ab8-49f7-9f5c-65da78076f47","name":"Create a New Order 1_Failure (unauthorised)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 1,\r\n  \"supplierId\": 1,\r\n  \"quantity\": 500\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/create"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"142"},{"key":"Date","value":"Thu, 21 Nov 2024 15:10:42 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:55:42.654509\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"ddca4fc3-7e5e-457f-b00c-b0e4a5a1f5ff"},{"name":"Update an Order","id":"b339240f-071b-44b1-94ec-bc586f60513e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 6,\r\n  \"supplierId\": 1,\r\n  \"quantity\": 40,\r\n  \"status\":\"COMPLETED\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/update/2","description":"<h3 id=\"update-order-details\">Update Order Details</h3>\n<p>This endpoint is used to update the details of a specific order.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>productId</code> (number): The ID of the product being ordered.</p>\n</li>\n<li><p><code>supplierId</code> (number): The ID of the supplier for the product.</p>\n</li>\n<li><p><code>quantity</code> (number): The quantity of the product being ordered.</p>\n</li>\n<li><p><code>status</code> (string): The status of the order.</p>\n</li>\n</ul>\n<p>The request body should be in JSON format and include the <code>productId</code>, <code>supplierId</code>, <code>quantity</code>, and <code>status</code> parameters.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p><code>message</code> (string): A message related to the response.</p>\n</li>\n<li><p><code>status</code> (number): The status code of the response.</p>\n</li>\n<li><p><code>order</code> (object): An object containing the updated order details.</p>\n<ul>\n<li><p><code>id</code> (number): The ID of the order.</p>\n</li>\n<li><p><code>product</code> (object): An object containing the details of the product in the order.</p>\n<ul>\n<li><p><code>id</code> (number): The ID of the product.</p>\n</li>\n<li><p><code>name</code> (string): The name of the product.</p>\n</li>\n<li><p><code>sku</code> (string): The stock keeping unit of the product.</p>\n</li>\n<li><p><code>price</code> (number): The price of the product.</p>\n</li>\n<li><p><code>quantity</code> (number): The available quantity of the product.</p>\n</li>\n<li><p><code>minStockLevel</code> (number): The minimum stock level of the product.</p>\n</li>\n<li><p><code>category</code> (string): The category of the product.</p>\n</li>\n<li><p><code>status</code> (string): The status of the product.</p>\n</li>\n<li><p><code>supplier</code> (object): An object containing the details of the supplier for the product.</p>\n<ul>\n<li><p><code>id</code> (number): The ID of the supplier.</p>\n</li>\n<li><p><code>name</code> (string): The name of the supplier.</p>\n</li>\n<li><p><code>email</code> (string): The email of the supplier.</p>\n</li>\n<li><p><code>phoneNumber</code> (string): The phone number of the supplier.</p>\n</li>\n<li><p><code>address</code> (string): The address of the supplier.</p>\n</li>\n<li><p><code>companyName</code> (string): The name of the company of the supplier.</p>\n</li>\n</ul>\n</li>\n<li><p><code>createdAt</code> (string): The date and time when the product was created.</p>\n</li>\n</ul>\n</li>\n<li><p><code>quantity</code> (number): The quantity of the product in the order.</p>\n</li>\n<li><p><code>totalPrice</code> (number): The total price of the order.</p>\n</li>\n<li><p><code>createdAt</code> (string): The date and time when the order was created.</p>\n</li>\n<li><p><code>status</code> (string): The status of the order.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response is in JSON format.</p>\n<h4 id=\"json-schema\">JSON Schema</h4>\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    \"status\": {\n      \"type\": \"number\"\n    },\n    \"order\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"number\"\n        },\n        \"product\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"id\": {\n              \"type\": \"number\"\n            },\n            \"name\": {\n              \"type\": \"string\"\n            },\n            \"sku\": {\n              \"type\": \"string\"\n            },\n            \"price\": {\n              \"type\": \"number\"\n            },\n            \"quantity\": {\n              \"type\": \"number\"\n            },\n            \"minStockLevel\": {\n              \"type\": \"number\"\n            },\n            \"category\": {\n              \"type\": \"string\"\n            },\n            \"status\": {\n              \"type\": \"string\"\n            },\n            \"supplier\": {\n              \"type\": \"object\",\n              \"properties\": {\n                \"id\": {\n                  \"type\": \"number\"\n                },\n                \"name\": {\n                  \"type\": \"string\"\n                },\n                \"email\": {\n                  \"type\": \"string\"\n                },\n                \"phoneNumber\": {\n                  \"type\": \"string\"\n                },\n                \"address\": {\n                  \"type\": \"string\"\n                },\n                \"companyName\": {\n                  \"type\": \"string\"\n                }\n              }\n            },\n            \"createdAt\": {\n              \"type\": \"string\"\n            }\n          }\n        },\n        \"quantity\": {\n          \"type\": \"number\"\n        },\n        \"totalPrice\": {\n          \"type\": \"number\"\n        },\n        \"createdAt\": {\n          \"type\": \"string\"\n        },\n        \"status\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","update","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d9242117-6461-4906-8064-1568e03548c4","name":"Update an Order_Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 6,\r\n  \"supplierId\": 2,\r\n  \"quantity\": 40,\r\n  \"status\":\"COMPLETED\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/update/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:14:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order updated successfully\",\n    \"status\": 200,\n    \"order\": {\n        \"id\": 2,\n        \"product\": {\n            \"id\": 6,\n            \"name\": \"Product 2\",\n            \"sku\": \"SKU123472\",\n            \"price\": 100.5,\n            \"quantity\": 50,\n            \"minStockLevel\": 10,\n            \"category\": \"ELECTRONICS\",\n            \"status\": \"ACTIVE\",\n            \"supplier\": {\n                \"id\": 2,\n                \"name\": \"Supplier Name 2\",\n                \"email\": \"supplier2@yopmail.com\",\n                \"phoneNumber\": \"1234567892\",\n                \"address\": \"123 Street, City\",\n                \"companyName\": \"Supplier2 Company\"\n            },\n            \"createdAt\": \"2024-11-21T20:58:06.667868\"\n        },\n        \"quantity\": 40,\n        \"totalPrice\": 4020,\n        \"createdAt\": \"2024-11-21T20:55:21.582291\",\n        \"status\": \"COMPLETED\"\n    }\n}"},{"id":"02077481-6ad8-42f6-bc14-9e1cc8dc85e4","name":"Update an Order_Failure (Product not found)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 60,\r\n  \"supplierId\": 2,\r\n  \"quantity\": 40,\r\n  \"status\":\"COMPLETED\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/update/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:15:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product not found\",\n    \"status\": 404\n}"},{"id":"69ac62bc-707a-4520-be54-0b52e34abfa6","name":"Update an Order_Failure (invalid supplier)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 6,\r\n  \"supplierId\": 200,\r\n  \"quantity\": 40,\r\n  \"status\":\"COMPLETED\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/update/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:15:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid supplier for the product.\",\n    \"status\": 404\n}"},{"id":"54164a1c-8bf5-4f62-bc26-27cc2f49bc06","name":"Update an Order_Failure (validation error)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 6,\r\n  \"supplierId\": 200,\r\n//   \"quantity\": 40,\r\n  \"status\":\"COMPLETED\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/update/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:16:50 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        \"quantity: Quantity is required\"\n    ],\n    \"status\": 400\n}"},{"id":"96ec19ed-6ef5-40d3-8cb7-0a0b19f696ad","name":"Update an Order_Failure (unauthorized)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{  \r\n  \"productId\": 6,\r\n  \"supplierId\": 2,\r\n  \"quantity\": 40,\r\n  \"status\":\"COMPLETED\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/update/2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 15:18:07 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T21:03:07.793788300\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"b339240f-071b-44b1-94ec-bc586f60513e"},{"name":"Get Order by ID","id":"985d1df0-72da-4356-b830-6f28c59a67aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/orders/1","description":"<h1 id=\"get-order-details\">Get Order Details</h1>\n<p>This endpoint retrieves the details of a specific order identified by its ID.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"path-parameters\">Path Parameters</h3>\n<ul>\n<li><code>1</code> (number) - The unique identifier of the order to retrieve.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>The response body 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        \"status\": {\n            \"type\": \"number\"\n        },\n        \"order\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"id\": {\n                    \"type\": \"number\"\n                },\n                \"product\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"id\": {\n                            \"type\": \"number\"\n                        },\n                        \"name\": {\n                            \"type\": \"string\"\n                        },\n                        \"sku\": {\n                            \"type\": \"string\"\n                        },\n                        \"price\": {\n                            \"type\": \"number\"\n                        },\n                        \"quantity\": {\n                            \"type\": \"number\"\n                        },\n                        \"minStockLevel\": {\n                            \"type\": \"number\"\n                        },\n                        \"category\": {\n                            \"type\": \"string\"\n                        },\n                        \"status\": {\n                            \"type\": \"string\"\n                        },\n                        \"supplier\": {\n                            \"type\": \"object\",\n                            \"properties\": {\n                                \"id\": {\n                                    \"type\": \"number\"\n                                },\n                                \"name\": {\n                                    \"type\": \"string\"\n                                },\n                                \"email\": {\n                                    \"type\": \"string\"\n                                },\n                                \"phoneNumber\": {\n                                    \"type\": \"string\"\n                                },\n                                \"address\": {\n                                    \"type\": \"string\"\n                                },\n                                \"companyName\": {\n                                    \"type\": \"string\"\n                                }\n                            }\n                        },\n                        \"createdAt\": {\n                            \"type\": \"string\"\n                        }\n                    }\n                },\n                \"quantity\": {\n                    \"type\": \"number\"\n                },\n                \"totalPrice\": {\n                    \"type\": \"number\"\n                },\n                \"createdAt\": {\n                    \"type\": \"string\"\n                },\n                \"status\": {\n                    \"type\": \"string\"\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"20915b8d-a8c1-404a-aadb-2a5d1c9f2e70","name":"Get Order by ID_Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:18:54 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"order\": {\n        \"id\": 1,\n        \"product\": {\n            \"id\": 1,\n            \"name\": \"Product 1\",\n            \"sku\": \"SKU00001\",\n            \"price\": 100.5,\n            \"quantity\": 50,\n            \"minStockLevel\": 20,\n            \"category\": \"BOOKS\",\n            \"status\": \"ACTIVE\",\n            \"supplier\": {\n                \"id\": 1,\n                \"name\": \"Supplier Name 1\",\n                \"email\": \"supplier1@yopmail.com\",\n                \"phoneNumber\": \"1234567891\",\n                \"address\": \"123 Street, City\",\n                \"companyName\": \"Supplier1 Company\"\n            },\n            \"createdAt\": \"2024-11-21T20:27:20.970307\"\n        },\n        \"quantity\": 500,\n        \"totalPrice\": 50250,\n        \"createdAt\": \"2024-11-21T20:53:34.241111\",\n        \"status\": \"PENDING\"\n    }\n}"},{"id":"80272590-e168-430a-96b9-4ac776e04d22","name":"Get Order by ID_Failure (Order not found)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:19:21 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order not found\",\n    \"status\": 404\n}"},{"id":"a8875b02-6e0d-4b81-a2e6-e3f5e346a0e4","name":"Get Order by ID_Failure (unauthorized)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 15:20:00 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T21:05:00.813006500\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"985d1df0-72da-4356-b830-6f28c59a67aa"},{"name":"Get all orders","id":"8902fe0b-2c57-4153-a6db-1be6e8944bd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/orders/all","description":"<h4 id=\"request\">Request</h4>\n<p>This is a GET request to fetch all the orders.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"orders\": [\n        {\n            \"id\": \"number\",\n            \"product\": {\n                \"id\": \"number\",\n                \"name\": \"string\",\n                \"sku\": \"string\",\n                \"price\": \"number\",\n                \"quantity\": \"number\",\n                \"minStockLevel\": \"number\",\n                \"category\": \"string\",\n                \"status\": \"string\",\n                \"supplier\": {\n                    \"id\": \"number\",\n                    \"name\": \"string\",\n                    \"email\": \"string\",\n                    \"phoneNumber\": \"string\",\n                    \"address\": \"string\",\n                    \"companyName\": \"string\"\n                },\n                \"createdAt\": \"string\",\n                \"updatedAt\": \"string\"\n            },\n            \"quantity\": \"number\",\n            \"totalPrice\": \"number\",\n            \"createdAt\": \"string\",\n            \"status\": \"string\"\n        }\n    ],\n    \"status\": \"number\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d1fb70f9-2c6c-4376-a826-91af74411f9f","name":"Get all orders_Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:20:54 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"orders\": [\n        {\n            \"id\": 1,\n            \"product\": {\n                \"id\": 1,\n                \"name\": \"Product 1\",\n                \"sku\": \"SKU00001\",\n                \"price\": 100.5,\n                \"quantity\": 50,\n                \"minStockLevel\": 20,\n                \"category\": \"BOOKS\",\n                \"status\": \"ACTIVE\",\n                \"supplier\": {\n                    \"id\": 1,\n                    \"name\": \"Supplier Name 1\",\n                    \"email\": \"supplier1@yopmail.com\",\n                    \"phoneNumber\": \"1234567891\",\n                    \"address\": \"123 Street, City\",\n                    \"companyName\": \"Supplier1 Company\"\n                },\n                \"createdAt\": \"2024-11-21T20:27:20.970307\"\n            },\n            \"quantity\": 500,\n            \"totalPrice\": 50250,\n            \"createdAt\": \"2024-11-21T20:53:34.241111\",\n            \"status\": \"PENDING\"\n        },\n        {\n            \"id\": 2,\n            \"product\": {\n                \"id\": 6,\n                \"name\": \"Product 2\",\n                \"sku\": \"SKU123472\",\n                \"price\": 100.5,\n                \"quantity\": 50,\n                \"minStockLevel\": 10,\n                \"category\": \"ELECTRONICS\",\n                \"status\": \"ACTIVE\",\n                \"supplier\": {\n                    \"id\": 2,\n                    \"name\": \"Supplier Name 2\",\n                    \"email\": \"supplier2@yopmail.com\",\n                    \"phoneNumber\": \"1234567892\",\n                    \"address\": \"123 Street, City\",\n                    \"companyName\": \"Supplier2 Company\"\n                },\n                \"createdAt\": \"2024-11-21T20:58:06.667868\"\n            },\n            \"quantity\": 40,\n            \"totalPrice\": 4020,\n            \"createdAt\": \"2024-11-21T20:55:21.582291\",\n            \"status\": \"COMPLETED\"\n        }\n    ],\n    \"status\": 200\n}"},{"id":"eb2cf6dc-ac61-4088-b2ac-cb032135cbf9","name":"Get all orders_Failure (unauthorised)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/orders/all"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 15:21:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T21:06:18.134212800\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"8902fe0b-2c57-4153-a6db-1be6e8944bd9"},{"name":"Delete an Order","id":"e1f868ca-7454-4797-9933-19dc353dcfde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/delete/2","description":"<h3 id=\"delete-apiordersdeleteorderid\">DELETE /api/orders/delete/{orderId}</h3>\n<p>This endpoint is used to delete a specific order identified by the orderId in the URL.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint. The orderId is specified in the URL path.</p>\n<ul>\n<li><code>orderId</code> (path parameter) - The ID of the order to be deleted.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is in JSON format and includes the following fields:</p>\n<ul>\n<li><p><code>message</code> (string) - A message related to the status of the request.</p>\n</li>\n<li><p><code>status</code> (number) - A status code indicating the result of the request.</p>\n</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\":\"string\",\n    \"status\": \"number\"\n}\n\n</code></pre>\n<h4 id=\"json-response-schema\">JSON Response Schema</h4>\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        \"status\": {\n            \"type\": \"number\"\n        }\n    },\n    \"required\": [\"message\", \"status\"]\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","orders","delete","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"232522c3-d213-4811-9402-2874d95303e8","name":"Delete an Order_Success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/delete/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:24:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order deleted successfully\",\n    \"status\": 200\n}"},{"id":"ade38c82-6652-4064-a90e-f48ff76ff638","name":"Delete an Order_Failure (Order not found)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/delete/33"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:22:23 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order not found\",\n    \"status\": 404\n}"},{"id":"8df2e8f0-e743-454a-b7c8-c7c38096a69a","name":"Delete an Order_Failure (unauthorised)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/orders/delete/1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 15:25:01 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T21:10:01.569638400\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"e1f868ca-7454-4797-9933-19dc353dcfde"}],"id":"711bfc37-2d8b-4ada-8f3d-80ad1e650b0f","description":"<p>This folder contains all endpoints related to order management and processing. It handles the complete lifecycle of orders from creation to deletion.</p>\n<p><strong>Available Endpoints:</strong></p>\n<ul>\n<li><p><strong>POST Create a New Order</strong></p>\n<ul>\n<li><p>Primary method for creating orders</p>\n</li>\n<li><p>First version of order creation</p>\n</li>\n</ul>\n</li>\n<li><p><strong>PUT Update an Order</strong></p>\n<ul>\n<li><p>Modifies existing order information</p>\n</li>\n<li><p>Handles order updates</p>\n</li>\n</ul>\n</li>\n<li><p><strong>GET Get Order by ID</strong></p>\n<ul>\n<li><p>Retrieves specific order details</p>\n</li>\n<li><p>Searches orders by unique identifier</p>\n</li>\n</ul>\n</li>\n<li><p><strong>GET Get all orders</strong></p>\n<ul>\n<li><p>Lists all orders in the system</p>\n</li>\n<li><p>Provides complete order overview</p>\n</li>\n</ul>\n</li>\n<li><p><strong>DEL Delete an Order</strong></p>\n<ul>\n<li><p>Removes orders from the system</p>\n</li>\n<li><p>Handles order deletion</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"711bfc37-2d8b-4ada-8f3d-80ad1e650b0f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","name":"Inventory Control System API documentation","type":"collection"}}},{"name":"Product","item":[{"name":"Create a New Product","id":"107af1b6-7773-4c63-9dc9-11053dfbb661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 1\",\r\n    \"sku\": \"SKU00001\",\r\n    \"price\": 100.50,\r\n    \"quantity\": 50,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"BOOKS\",\r\n    \"supplierId\": 1\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/create","description":"<h3 id=\"create-product\">Create Product</h3>\n<p>This endpoint allows the creation of a new product.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The name of the product.</p>\n</li>\n<li><p>sku (string, required): The stock keeping unit (SKU) of the product.</p>\n</li>\n<li><p>price (number, required): The price of the product.</p>\n</li>\n<li><p>quantity (number, required): The initial quantity of the product.</p>\n</li>\n<li><p>minStockLevel (number, required): The minimum stock level for the product.</p>\n</li>\n<li><p>category (string, required): The category of the product.</p>\n</li>\n<li><p>supplierId (number, required): The ID of the supplier for the product.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be 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\": 0,\n    \"name\": \"\",\n    \"sku\": \"\",\n    \"price\": 0,\n    \"quantity\": 0,\n    \"minStockLevel\": 0,\n    \"category\": \"\",\n    \"status\": \"\",\n    \"supplier\": {\n      \"id\": 0,\n      \"name\": \"\",\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"address\": \"\",\n      \"companyName\": \"\"\n    },\n    \"createdAt\": \"\"\n  },\n  \"message\": \"\",\n  \"status\": 0\n}\n\n</code></pre>\n<ul>\n<li><p>product (object): The details of the created product.</p>\n<ul>\n<li><p>id (number): The ID of the product.</p>\n</li>\n<li><p>name (string): The name of the product.</p>\n</li>\n<li><p>sku (string): The stock keeping unit (SKU) of the product.</p>\n</li>\n<li><p>price (number): The price of the product.</p>\n</li>\n<li><p>quantity (number): The quantity of the product.</p>\n</li>\n<li><p>minStockLevel (number): The minimum stock level for the product.</p>\n</li>\n<li><p>category (string): The category of the product.</p>\n</li>\n<li><p>status (string): The status of the product.</p>\n</li>\n<li><p>supplier (object): The details of the supplier for the product.</p>\n<ul>\n<li><p>id (number): The ID of the supplier.</p>\n</li>\n<li><p>name (string): The name of the supplier.</p>\n</li>\n<li><p>email (string): The email of the supplier.</p>\n</li>\n<li><p>phoneNumber (string): The phone number of the supplier.</p>\n</li>\n<li><p>address (string): The address of the supplier.</p>\n</li>\n<li><p>companyName (string): The company name of the supplier.</p>\n</li>\n</ul>\n</li>\n<li><p>createdAt (string): The date and time of product creation.</p>\n</li>\n</ul>\n</li>\n<li><p>message (string): A message related to the request.</p>\n</li>\n<li><p>status (number): The status of the request.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","products","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2aa7a817-71c1-47e4-9fd6-b241e4630d0c","name":"Create a New Product 1_Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 1\",\r\n    \"sku\": \"SKU00001\",\r\n    \"price\": 100.50,\r\n    \"quantity\": 50,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"BOOKS\",\r\n    \"supplierId\": 1\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 08:20:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"id\": 31,\n        \"name\": \"Product 1\",\n        \"sku\": \"SKU00001\",\n        \"price\": 100.5,\n        \"quantity\": 50,\n        \"minStockLevel\": 20,\n        \"category\": \"BOOKS\",\n        \"status\": \"ACTIVE\",\n        \"supplier\": {\n            \"id\": 1,\n            \"name\": \"Supplier Name 1\",\n            \"email\": \"supplier1@yopmail.com\",\n            \"phoneNumber\": \"1234567891\",\n            \"address\": \"123 Street, City\",\n            \"companyName\": \"Supplier1 Company\"\n        },\n        \"createdAt\": \"2024-11-21T14:05:06.1250691\"\n    },\n    \"message\": \"Product created successfully\",\n    \"status\": 201\n}"},{"id":"a38f473f-3f68-4d5c-92ea-99971e1acbc3","name":"Create a New Product 1_Failure (duplicate product)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 1\",\r\n    \"sku\": \"SKU00001\",\r\n    \"price\": 100.50,\r\n    \"quantity\": 50,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"BOOKS\",\r\n    \"supplierId\": 1\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:42:23 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: could not execute statement [Duplicate entry 'Product 1' for key 'product.UKjmivyxk9rmgysrmsqw15lqr5b'] [insert into product (category,created_at,min_stock_level,name,price,quantity,sku,status,supplier_id,updated_at) values (?,?,?,?,?,?,?,?,?,?)]; SQL [insert into product (category,created_at,min_stock_level,name,price,quantity,sku,status,supplier_id,updated_at) values (?,?,?,?,?,?,?,?,?,?)]; constraint [product.UKjmivyxk9rmgysrmsqw15lqr5b]\",\n    \"timestamp\": \"2024-11-21T20:27:23.5538101\",\n    \"status\": 500\n}"},{"id":"321eeb12-4f07-4d0e-8802-fdc4b6053117","name":"Create a New Product 1_Failure (validation error)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 2\",\r\n    \"sku\": \"SKU123472\",\r\n    \"price\": 100.50,\r\n    // \"quantity\": 50,\r\n    \"minStockLevel\": 10,\r\n    \"category\": \"ELECTRONICS\",\r\n    \"supplierId\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:45:13 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        \"quantity: Quantity is mandatory\"\n    ],\n    \"status\": 400\n}"},{"id":"03691b4f-f74c-4acd-8d76-00c016e3cbbb","name":"Create a New Product 1_Failure (unauthorized)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 1\",\r\n    \"sku\": \"SKU00001\",\r\n    \"price\": 100.50,\r\n    \"quantity\": 50,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"BOOKS\",\r\n    \"supplierId\": 1\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/create"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:53:50 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:38:50.936183300\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"107af1b6-7773-4c63-9dc9-11053dfbb661"},{"name":"Update an existing product","id":"3f026f8c-b031-4c71-9a87-7b06f617528d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 2\",\r\n    \"sku\": \"SKU123472\",\r\n    \"price\": 1000.50,\r\n    \"quantity\": 200,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"ELECTRONICS\",\r\n    \"supplierId\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/update/4","description":"<h3 id=\"update-product\">Update Product</h3>\n<p>This endpoint is used to update a specific product by its ID.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The name of the product.</p>\n</li>\n<li><p>sku (string, required): The Stock Keeping Unit (SKU) of the product.</p>\n</li>\n<li><p>price (number, required): The price of the product.</p>\n</li>\n<li><p>quantity (number, required): The available quantity of the product.</p>\n</li>\n<li><p>minStockLevel (number, required): The minimum stock level of the product.</p>\n</li>\n<li><p>category (string, required): The category of the product.</p>\n</li>\n<li><p>supplierId (number, required): The ID of the supplier.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p>product (object): Information about the updated product, including its ID, name, SKU, price, quantity, minimum stock level, category, status, supplier details, creation date, and last update date.</p>\n</li>\n<li><p>message (string): A message related to the update operation.</p>\n</li>\n<li><p>status (number): The status of the update operation.</p>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"product\": {\n    \"id\": 0,\n    \"name\": \"\",\n    \"sku\": \"\",\n    \"price\": 0,\n    \"quantity\": 0,\n    \"minStockLevel\": 0,\n    \"category\": \"\",\n    \"status\": \"\",\n    \"supplier\": {\n      \"id\": 0,\n      \"name\": \"\",\n      \"email\": \"\",\n      \"phoneNumber\": \"\",\n      \"address\": \"\",\n      \"companyName\": \"\"\n    },\n    \"createdAt\": \"\",\n    \"updatedAt\": \"\"\n  },\n  \"message\": \"\",\n  \"status\": 0\n}\n\n</code></pre>\n<h4 id=\"json-schema\">JSON Schema</h4>\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\": \"number\" },\n        \"name\": { \"type\": \"string\" },\n        \"sku\": { \"type\": \"string\" },\n        \"price\": { \"type\": \"number\" },\n        \"quantity\": { \"type\": \"number\" },\n        \"minStockLevel\": { \"type\": \"number\" },\n        \"category\": { \"type\": \"string\" },\n        \"status\": { \"type\": \"string\" },\n        \"supplier\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"id\": { \"type\": \"number\" },\n            \"name\": { \"type\": \"string\" },\n            \"email\": { \"type\": \"string\" },\n            \"phoneNumber\": { \"type\": \"string\" },\n            \"address\": { \"type\": \"string\" },\n            \"companyName\": { \"type\": \"string\" }\n          }\n        },\n        \"createdAt\": { \"type\": \"string\" },\n        \"updatedAt\": { \"type\": \"string\" }\n      }\n    },\n    \"message\": { \"type\": \"string\" },\n    \"status\": { \"type\": \"number\" }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","products","update","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"95c415fb-5548-4b30-be8f-42ac0ec96789","name":"Update an existing product_Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 2\",\r\n    \"sku\": \"SKU123472\",\r\n    \"price\": 1000.50,\r\n    \"quantity\": 200,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"ELECTRONICS\",\r\n    \"supplierId\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/update/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:55:21 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"id\": 4,\n        \"name\": \"Product 2\",\n        \"sku\": \"SKU123472\",\n        \"price\": 1000.5,\n        \"quantity\": 200,\n        \"minStockLevel\": 20,\n        \"category\": \"ELECTRONICS\",\n        \"status\": \"ACTIVE\",\n        \"supplier\": {\n            \"id\": 2,\n            \"name\": \"Supplier Name 2\",\n            \"email\": \"supplier2@yopmail.com\",\n            \"phoneNumber\": \"1234567892\",\n            \"address\": \"123 Street, City\",\n            \"companyName\": \"Supplier2 Company\"\n        },\n        \"createdAt\": \"2024-11-21T20:29:12.159962\",\n        \"updatedAt\": \"2024-11-21T20:40:21.1948166\"\n    },\n    \"message\": \"Product updated successfully\",\n    \"status\": 200\n}"},{"id":"616063cf-8e4b-4f6d-ab58-1df2c19dc768","name":"Update an existing product_Failure (validation error)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 2\",\r\n    // \"sku\": \"SKU123472\",\r\n    \"price\": 1000.50,\r\n    \"quantity\": 200,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"ELECTRONICS\",\r\n    \"supplierId\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/update/4"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:57:05 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        \"sku: SKU is mandatory\"\n    ],\n    \"status\": 400\n}"},{"id":"1539562f-815f-487f-98f1-fe55bea6f039","name":"Update an existing product_Failure (product not fount)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 2\",\r\n    \"sku\": \"SKU123472\",\r\n    \"price\": 1000.50,\r\n    \"quantity\": 200,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"ELECTRONICS\",\r\n    \"supplierId\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/update/2"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:57:27 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: Product not found\",\n    \"timestamp\": \"2024-11-21T20:42:27.3068201\",\n    \"status\": 500\n}"},{"id":"9a5ecc13-3cc9-4c4c-9cab-5b93ea358dbf","name":"Update an existing product_Failure (unauthorized)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Product 2\",\r\n    \"sku\": \"SKU123472\",\r\n    \"price\": 1000.50,\r\n    \"quantity\": 200,\r\n    \"minStockLevel\": 20,\r\n    \"category\": \"ELECTRONICS\",\r\n    \"supplierId\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/update/4"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:58:08 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:43:08.602131700\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"3f026f8c-b031-4c71-9a87-7b06f617528d"},{"name":"Get Product by ID","id":"d4f2162a-b904-4471-a872-96fba9bc18bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/products/1","description":"<p>The endpoint retrieves product information based on the provided product ID.</p>\n<p>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\": \"number\"},\n                \"name\": {\"type\": \"string\"},\n                \"sku\": {\"type\": \"string\"},\n                \"price\": {\"type\": \"number\"},\n                \"quantity\": {\"type\": \"number\"},\n                \"minStockLevel\": {\"type\": \"number\"},\n                \"category\": {\"type\": \"string\"},\n                \"status\": {\"type\": \"string\"},\n                \"supplier\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"id\": {\"type\": \"number\"},\n                        \"name\": {\"type\": \"string\"},\n                        \"email\": {\"type\": \"string\"},\n                        \"phoneNumber\": {\"type\": \"string\"},\n                        \"address\": {\"type\": \"string\"},\n                        \"companyName\": {\"type\": \"string\"}\n                    }\n                },\n                \"createdAt\": {\"type\": \"string\"}\n            }\n        },\n        \"status\": {\"type\": \"number\"}\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","products","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ac5af2fe-5576-4f3a-b65f-1f485bf3e660","name":"Get Product by ID_Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/products/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:59:37 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"id\": 1,\n        \"name\": \"Product 1\",\n        \"sku\": \"SKU00001\",\n        \"price\": 100.5,\n        \"quantity\": 50,\n        \"minStockLevel\": 20,\n        \"category\": \"BOOKS\",\n        \"status\": \"ACTIVE\",\n        \"supplier\": {\n            \"id\": 1,\n            \"name\": \"Supplier Name 1\",\n            \"email\": \"supplier1@yopmail.com\",\n            \"phoneNumber\": \"1234567891\",\n            \"address\": \"123 Street, City\",\n            \"companyName\": \"Supplier1 Company\"\n        },\n        \"createdAt\": \"2024-11-21T20:27:20.970307\"\n    },\n    \"status\": 200\n}"},{"id":"95e8d961-ac4c-4bb2-b9c7-f81862e653ce","name":"Get Product by ID_Failure (product not found)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/products/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:00:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product not found with ID: 100\",\n    \"status\": 404\n}"},{"id":"6fb1d857-5811-4f0f-870b-1b4363e2317f","name":"Get Product by ID_Failure (unauthorized)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/products/100"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 15:00:47 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:45:47.519315400\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"d4f2162a-b904-4471-a872-96fba9bc18bd"},{"name":"Get All Products","id":"fbbe49c7-4fa2-44b1-ada8-b26ead6aa132","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/products/all","description":"<h3 id=\"get-apiproductsall\">GET /api/products/all</h3>\n<p>This endpoint retrieves all products.</p>\n<h4 id=\"request\">Request</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"status\": {\n            \"type\": \"number\"\n        },\n        \"products\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"id\": {\n                        \"type\": \"number\"\n                    },\n                    \"name\": {\n                        \"type\": \"string\"\n                    },\n                    \"sku\": {\n                        \"type\": \"string\"\n                    },\n                    \"price\": {\n                        \"type\": \"number\"\n                    },\n                    \"quantity\": {\n                        \"type\": \"number\"\n                    },\n                    \"minStockLevel\": {\n                        \"type\": \"number\"\n                    },\n                    \"category\": {\n                        \"type\": \"string\"\n                    },\n                    \"status\": {\n                        \"type\": \"string\"\n                    },\n                    \"supplier\": {\n                        \"type\": \"object\",\n                        \"properties\": {\n                            \"id\": {\n                                \"type\": \"number\"\n                            },\n                            \"name\": {\n                                \"type\": \"string\"\n                            },\n                            \"email\": {\n                                \"type\": \"string\"\n                            },\n                            \"phoneNumber\": {\n                                \"type\": \"string\"\n                            },\n                            \"address\": {\n                                \"type\": \"string\"\n                            },\n                            \"companyName\": {\n                                \"type\": \"string\"\n                            }\n                        }\n                    },\n                    \"createdAt\": {\n                        \"type\": \"string\"\n                    },\n                    \"updatedAt\": {\n                        \"type\": \"string\"\n                    }\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","products","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6ec9b9cd-bd95-4511-b77d-193ee7a56f72","name":"Get All Products_Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/products/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:01:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"products\": [\n        {\n            \"id\": 1,\n            \"name\": \"Product 1\",\n            \"sku\": \"SKU00001\",\n            \"price\": 100.5,\n            \"quantity\": 50,\n            \"minStockLevel\": 20,\n            \"category\": \"BOOKS\",\n            \"status\": \"ACTIVE\",\n            \"supplier\": {\n                \"id\": 1,\n                \"name\": \"Supplier Name 1\",\n                \"email\": \"supplier1@yopmail.com\",\n                \"phoneNumber\": \"1234567891\",\n                \"address\": \"123 Street, City\",\n                \"companyName\": \"Supplier1 Company\"\n            },\n            \"createdAt\": \"2024-11-21T20:27:20.970307\"\n        },\n        {\n            \"id\": 4,\n            \"name\": \"Product 2\",\n            \"sku\": \"SKU123472\",\n            \"price\": 1000.5,\n            \"quantity\": 200,\n            \"minStockLevel\": 20,\n            \"category\": \"ELECTRONICS\",\n            \"status\": \"ACTIVE\",\n            \"supplier\": {\n                \"id\": 2,\n                \"name\": \"Supplier Name 2\",\n                \"email\": \"supplier2@yopmail.com\",\n                \"phoneNumber\": \"1234567892\",\n                \"address\": \"123 Street, City\",\n                \"companyName\": \"Supplier2 Company\"\n            },\n            \"createdAt\": \"2024-11-21T20:29:12.159962\",\n            \"updatedAt\": \"2024-11-21T20:43:04.917063\"\n        }\n    ]\n}"},{"id":"27a3ad97-9ed3-4cac-b7f3-c38830ff7105","name":"Get All Products_Failure (unauthorized)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/products/all"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 15:02:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:47:43.744492200\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"fbbe49c7-4fa2-44b1-ada8-b26ead6aa132"},{"name":"Delete Product by ID","id":"d279f123-cc8c-453e-8b2e-aafff3404cc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/products/delete/4","description":"<h3 id=\"delete-product\">Delete Product</h3>\n<p>This endpoint is used to delete a specific product.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>Endpoint: <code>http://localhost:8080/api/products/delete/4</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for 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        \"status\": {\n            \"type\": \"number\"\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","products","delete","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ac5a984c-3d20-4209-9ba8-30bd87a1d021","name":"Delete Product by ID_Success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/products/delete/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 15:05:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product deleted successfully with ID: 4\",\n    \"status\": 200\n}"},{"id":"c326cc74-6a15-46f3-8b1f-2fc3143f777b","name":"Delete Product by ID_Failure (product not found)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/products/delete/200"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 08:26:44 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product not found with ID: 200\",\n    \"status\": 404\n}"},{"id":"fd448860-9954-4926-a37d-377ad5169091","name":"Delete Product by ID_Failure (unauthorized)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/products/delete/4"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 15:05:53 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:50:53.649761200\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"d279f123-cc8c-453e-8b2e-aafff3404cc6"}],"id":"aa53b21c-3575-4924-a1b9-17a20e9b6993","description":"<p>This folder manages all product-related operations in the inventory system, including creation, modification, retrieval, and deletion of products.</p>\n<p><strong>Available Endpoints:</strong></p>\n<ul>\n<li><p><strong>POST Create a New Product</strong></p>\n<ul>\n<li><p>Primary method for product creation</p>\n</li>\n<li><p>First version of product registration</p>\n</li>\n</ul>\n</li>\n<li><p><strong>PUT Update an existing product</strong></p>\n<ul>\n<li><p>Modifies existing product information</p>\n</li>\n<li><p>Handles product updates</p>\n</li>\n</ul>\n</li>\n<li><p><strong>GET Get Product by ID</strong></p>\n<ul>\n<li><p>Retrieves specific product details</p>\n</li>\n<li><p>Searches products by unique identifier</p>\n</li>\n</ul>\n</li>\n<li><p><strong>GET Get All Products</strong></p>\n<ul>\n<li><p>Lists all products in the system</p>\n</li>\n<li><p>Provides complete product catalog</p>\n</li>\n</ul>\n</li>\n<li><p><strong>DEL Delete Product by ID</strong></p>\n<ul>\n<li><p>Removes products from the system</p>\n</li>\n<li><p>Handles product deletion</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"aa53b21c-3575-4924-a1b9-17a20e9b6993","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","name":"Inventory Control System API documentation","type":"collection"}}},{"name":"Supplier","item":[{"name":"Create a new Supplier","id":"44c97327-d1b2-480e-934e-0ad324d34f3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n  \"email\": \"keciwe5001@merotx.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/create","description":"<h3 id=\"create-supplier\">Create Supplier</h3>\n<p>This endpoint allows you to create a new supplier.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>name (string, required): The name of the supplier.</p>\n</li>\n<li><p>email (string, required): The email address of the supplier.</p>\n</li>\n<li><p>phoneNumber (string, required): The phone number of the supplier.</p>\n</li>\n<li><p>address (string, required): The address of the supplier.</p>\n</li>\n<li><p>companyName (string, required): The name of the supplier's company.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p>supplier (object): An object containing the details of the created supplier, including id, name, email, phoneNumber, address, and companyName.</p>\n</li>\n<li><p>message (string): A message indicating the status of the request.</p>\n</li>\n<li><p>status (integer): A status code indicating the success or failure of the request.</p>\n</li>\n</ul>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"supplier\": {\n    \"id\": 0,\n    \"name\": \"\",\n    \"email\": \"\",\n    \"phoneNumber\": \"\",\n    \"address\": \"\",\n    \"companyName\": \"\"\n  },\n  \"message\": \"\",\n  \"status\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","suppliers","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c5cafb78-8da6-4145-9e5e-0ca4d7839552","name":"Create a new Supplier1_Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n  \"email\": \"keciwe5001@merotx.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:26:44 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"supplier\": {\n        \"id\": 1,\n        \"name\": \"Supplier Name 1\",\n        \"email\": \"keciwe5001@merotx.com\",\n        \"phoneNumber\": \"1234567891\",\n        \"address\": \"123 Street, City\",\n        \"companyName\": \"Supplier1 Company\"\n    },\n    \"message\": \"Supplier created successfully\",\n    \"status\": 201\n}"},{"id":"6e9c4dca-ebad-4306-a3d3-57d6896e2296","name":"Create a new Supplier1_Failure(duplicate email)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n  \"email\": \"keciwe5001@merotx.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:27:09 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: Supplier with this email already exists\",\n    \"timestamp\": \"2024-11-21T20:12:09.5660703\",\n    \"status\": 500\n}"},{"id":"995f30d8-bfc3-46bd-af79-6f7f2d2f2003","name":"Create a new Supplier1_Failure (validation error)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n//   \"email\": \"keciwe5001@merotx.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:47:10 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        \"email: Email is mandatory\"\n    ],\n    \"status\": 400\n}"},{"id":"06733560-946c-4546-821a-14c8a046f53f","name":"Create a new Supplier1_Failure (unauthorized)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n  \"email\": \"keciwe5001@merotx.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/create"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:27:53 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:12:53.130008800\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"44c97327-d1b2-480e-934e-0ad324d34f3d"},{"name":"Update existing Supplier","id":"25b3ed7e-6f1f-4cac-9865-86cec93438c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n  \"email\": \"supplier1@yopmail.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/update/1","description":"<h3 id=\"update-supplier-details\">Update Supplier Details</h3>\n<p>This endpoint allows the client to update the details of a specific supplier.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>Type: JSON</p>\n<ul>\n<li><p><code>name</code>: (string) The name of the supplier.</p>\n</li>\n<li><p><code>email</code>: (string) The email address of the supplier.</p>\n</li>\n<li><p><code>phoneNumber</code>: (string) The phone number of the supplier.</p>\n</li>\n<li><p><code>address</code>: (string) The address of the supplier.</p>\n</li>\n<li><p><code>companyName</code>: (string) The name of the supplier's company.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response-body-json-schema\">Response Body (JSON Schema)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"supplier\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": { \"type\": \"integer\" },\n        \"name\": { \"type\": \"string\" },\n        \"email\": { \"type\": \"string\" },\n        \"phoneNumber\": { \"type\": \"string\" },\n        \"address\": { \"type\": \"string\" },\n        \"companyName\": { \"type\": \"string\" }\n      }\n    },\n    \"message\": { \"type\": \"string\" },\n    \"status\": { \"type\": \"integer\" }\n  }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","suppliers","update","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d8d140a6-2f93-40ba-8f5f-07e728bfe1d3","name":"Update existing Supplier_Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n  \"email\": \"supplier1@yopmail.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/update/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:29:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"supplier\": {\n        \"id\": 1,\n        \"name\": \"Supplier Name 1\",\n        \"email\": \"supplier1@yopmail.com\",\n        \"phoneNumber\": \"1234567891\",\n        \"address\": \"123 Street, City\",\n        \"companyName\": \"Supplier1 Company\"\n    },\n    \"message\": \"Supplier updated successfully\",\n    \"status\": 200\n}"},{"id":"0065da19-17ff-4cc3-acc5-c2222c9f0242","name":"Update existing Supplier_Failure (duplicate entry)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n  \"email\": \"supplier2@yopmail.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/update/1"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:32:04 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: could not execute statement [Duplicate entry 'supplier2@yopmail.com' for key 'supplier.UNIQUE_email'] [update supplier set address=?,company_name=?,email=?,name=?,phone_number=? where id=?]; SQL [update supplier set address=?,company_name=?,email=?,name=?,phone_number=? where id=?]; constraint [supplier.UNIQUE_email]\",\n    \"timestamp\": \"2024-11-21T20:17:04.5262176\",\n    \"status\": 500\n}"},{"id":"1865c1cc-b867-4be6-90f3-1046a6c4284a","name":"Update existing Supplier_Failure (unauthorized)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Supplier Name 1\",\r\n  \"email\": \"supplier2@yopmail.com\",\r\n  \"phoneNumber\": \"1234567891\",\r\n  \"address\": \"123 Street, City\",\r\n  \"companyName\": \"Supplier1 Company\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/suppliers/update/1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:32:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:17:43.368265500\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"25b3ed7e-6f1f-4cac-9865-86cec93438c1"},{"name":"Get all suppliers","id":"46ca2ab9-5084-4272-9caf-25df6aa94073","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/suppliers/all","description":"<h3 id=\"get-apisuppliersall\">GET /api/suppliers/all</h3>\n<p>This endpoint retrieves a list of all suppliers.</p>\n<h4 id=\"request\">Request</h4>\n<p>This is a GET request to fetch the list of all suppliers.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"suppliers\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"integer\"\n          },\n          \"name\": {\n            \"type\": \"string\"\n          },\n          \"email\": {\n            \"type\": \"string\"\n          },\n          \"phoneNumber\": {\n            \"type\": \"string\"\n          },\n          \"address\": {\n            \"type\": \"string\"\n          },\n          \"companyName\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    },\n    \"status\": {\n      \"type\": \"integer\"\n    }\n  }\n}\n\n</code></pre>\n<p>The response will contain an array of supplier objects with their respective id, name, email, phone number, address, and company name. The status field indicates the status of the response.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","suppliers","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"40b1eaef-8bd3-4e1e-b7fe-eff021fd36a1","name":"Get all suppliers_Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/suppliers/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:33:46 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"suppliers\": [\n        {\n            \"id\": 1,\n            \"name\": \"Supplier Name 1\",\n            \"email\": \"supplier1@yopmail.com\",\n            \"phoneNumber\": \"1234567891\",\n            \"address\": \"123 Street, City\",\n            \"companyName\": \"Supplier1 Company\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Supplier Name 2\",\n            \"email\": \"supplier2@yopmail.com\",\n            \"phoneNumber\": \"1234567892\",\n            \"address\": \"123 Street, City\",\n            \"companyName\": \"Supplier2 Company\"\n        }\n    ],\n    \"status\": 200\n}"},{"id":"20320e79-18e3-4e80-a852-6a1ac450d94e","name":"Get all suppliers_Failure (unauthorized)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/suppliers/all"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:34:11 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:19:11.324996100\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"46ca2ab9-5084-4272-9caf-25df6aa94073"},{"name":"get supplier by id","id":"4bee803e-d2e5-49c7-befc-38032bc5bcda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/suppliers/1","description":"<h3 id=\"get-apisuppliers1\">GET /api/suppliers/1</h3>\n<p>This endpoint retrieves the details of a specific supplier with the given ID.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"supplier\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"email\": \"\",\n        \"phoneNumber\": \"\",\n        \"address\": \"\",\n        \"companyName\": \"\"\n    },\n    \"status\": 0\n}\n\n</code></pre>\n<p>The <code>supplier</code> object contains the details of the supplier including their ID, name, email, phone number, address, and company name. The <code>status</code> field indicates the status of the response.</p>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"supplier\": {\n        \"id\": 0,\n        \"name\": \"\",\n        \"email\": \"\",\n        \"phoneNumber\": \"\",\n        \"address\": \"\",\n        \"companyName\": \"\"\n    },\n    \"status\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","suppliers","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5fb4d3ae-53f2-42f8-afd4-040cadd20d8f","name":"get supplier by id_Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/suppliers/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:35:13 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"supplier\": {\n        \"id\": 1,\n        \"name\": \"Supplier Name 1\",\n        \"email\": \"supplier1@yopmail.com\",\n        \"phoneNumber\": \"1234567891\",\n        \"address\": \"123 Street, City\",\n        \"companyName\": \"Supplier1 Company\"\n    },\n    \"status\": 200\n}"},{"id":"da9777b3-130f-4a96-a198-c020dfb4101f","name":"get supplier by id_Failure (supplier not fount)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/suppliers/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:36:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier not found\",\n    \"status\": 404\n}"},{"id":"3d3f1c89-d00a-48ee-ab90-32e2d162abed","name":"get supplier by id_Failure (unauthorized)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/suppliers/100"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:37:21 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:22:21.049960500\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"4bee803e-d2e5-49c7-befc-38032bc5bcda"},{"name":"delete supplier by id","id":"843485c4-3981-455f-bff3-750bace353c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/suppliers/delete/3","description":"<h3 id=\"delete-supplier\">Delete Supplier</h3>\n<p>This endpoint is used to delete a specific supplier by their ID.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p><code>message</code> (string): A message indicating the result of the deletion.</p>\n</li>\n<li><p><code>status</code> (integer): A status code indicating the success or failure of the deletion operation.</p>\n</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\",\n    \"status\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","suppliers","delete","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5f693838-f78a-4065-9fda-56e0782d45f4","name":"delete supplier by id_Sucess","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/suppliers/delete/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:40:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier deleted successfully with ID: 3\",\n    \"status\": 200\n}"},{"id":"61b4584b-4560-4012-9c96-d00a92dc69ce","name":"delete supplier by id_Failure (supplier not found)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/suppliers/delete/3"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 08:14:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Not Found\",\n    \"message\": \"Supplier not found with ID: 3\",\n    \"timestamp\": \"2024-11-21T13:59:10.1640731\",\n    \"status\": 404\n}"},{"id":"6ca5bfb4-7112-4b86-9aea-7d10486f7cf4","name":"delete supplier by id_Failure (unauthorized)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/suppliers/delete/3"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:40:45 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:25:45.578903500\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"843485c4-3981-455f-bff3-750bace353c9"}],"id":"04ca54e7-a3c8-4f5e-883d-55b975e80b49","description":"<p>This folder contains endpoints for managing supplier information, including adding new suppliers, updating their information, and managing supplier relationships.</p>\n<p><strong>Available Endpoints:</strong></p>\n<ul>\n<li><p><strong>POST Create a new Supplier</strong></p>\n<ul>\n<li><p>Primary method for supplier registration</p>\n</li>\n<li><p>First version of supplier creation</p>\n</li>\n</ul>\n</li>\n<li><p><strong>PUT Update existing Supplier</strong></p>\n<ul>\n<li><p>Modifies existing supplier information</p>\n</li>\n<li><p>Handles supplier detail updates</p>\n</li>\n</ul>\n</li>\n<li><p><strong>GET Get all suppliers</strong></p>\n<ul>\n<li><p>Lists all suppliers in the system</p>\n</li>\n<li><p>Provides complete supplier overview</p>\n</li>\n</ul>\n</li>\n<li><p><strong>GET get supplier by id</strong></p>\n<ul>\n<li><p>Retrieves specific supplier details</p>\n</li>\n<li><p>Searches suppliers by unique identifier</p>\n</li>\n</ul>\n</li>\n<li><p><strong>DEL delete supplier by id</strong></p>\n<ul>\n<li><p>Removes suppliers from the system</p>\n</li>\n<li><p>Handles supplier deletion</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"04ca54e7-a3c8-4f5e-883d-55b975e80b49","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","name":"Inventory Control System API documentation","type":"collection"}}},{"name":"User","item":[{"name":"Register User","id":"370148fb-6767-4676-87b4-489acc2c415f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"fiwiji4188@venfee.com\",\r\n        \"fullName\": \"Gal Gadot\",\r\n        \"dateOfBirth\": \"30-04-1985\",\r\n        \"phoneNumber\": \"6543210987\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register","description":"<h3 id=\"register-user\">Register User</h3>\n<p>This endpoint allows the client to register a new user.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>username</code> (string, required): The username of the user.</p>\n</li>\n<li><p><code>password</code> (string, required): The password for the user account.</p>\n</li>\n<li><p><code>email</code> (string, required): The email address of the user.</p>\n</li>\n<li><p><code>fullName</code> (string, required): The full name of the user.</p>\n</li>\n<li><p><code>dateOfBirth</code> (string, required): The date of birth of the user.</p>\n</li>\n<li><p><code>phoneNumber</code> (string, required): The phone number of the user.</p>\n</li>\n<li><p><code>address</code> (string, required): The address of the user.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"username\": \"GalGadot\",\n  \"password\": \"GalGadot\",\n  \"email\": \"fiwiji4188@venfee.com\",\n  \"fullName\": \"Gal Gadot\",\n  \"dateOfBirth\": \"30-04-1985\",\n  \"phoneNumber\": \"6543210987\",\n  \"address\": \"Rosh HaAyin, Israel\"\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following properties:</p>\n<ul>\n<li><p><code>message</code> (string): A message related to the request.</p>\n</li>\n<li><p><code>user</code> (object): An object containing user details including id, username, password, email, fullName, roles, dateOfBirth, phoneNumber, address, and createdAt.</p>\n<ul>\n<li><p><code>id</code> (number): The unique identifier of the user.</p>\n</li>\n<li><p><code>username</code> (string): The username of the user.</p>\n</li>\n<li><p><code>password</code> (string): The password of the user.</p>\n</li>\n<li><p><code>email</code> (string): The email address of the user.</p>\n</li>\n<li><p><code>fullName</code> (string): The full name of the user.</p>\n</li>\n<li><p><code>roles</code> (array of strings): The roles assigned to the user.</p>\n</li>\n<li><p><code>dateOfBirth</code> (string): The date of birth of the user.</p>\n</li>\n<li><p><code>phoneNumber</code> (string): The phone number of the user.</p>\n</li>\n<li><p><code>address</code> (string): The address of the user.</p>\n</li>\n<li><p><code>createdAt</code> (string): The timestamp of when the user account was created.</p>\n</li>\n</ul>\n</li>\n<li><p><code>status</code> (number): The status code of the response.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"\",\n  \"user\": {\n    \"id\": 0,\n    \"username\": \"\",\n    \"password\": \"\",\n    \"email\": \"\",\n    \"fullName\": \"\",\n    \"roles\": [\"\"],\n    \"dateOfBirth\": \"\",\n    \"phoneNumber\": \"\",\n    \"address\": \"\",\n    \"createdAt\": \"\"\n  },\n  \"status\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"464a317e-42f1-4d38-ad38-640466022e16","name":"Register User_Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"fiwiji4188@venfee.com\",\r\n        \"fullName\": \"Gal Gadot\",\r\n        \"dateOfBirth\": \"30-04-1985\",\r\n        \"phoneNumber\": \"6543210987\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 07:51:50 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User registered successfully\",\n    \"user\": {\n        \"id\": 2,\n        \"username\": \"GalGadot\",\n        \"password\": \"$2a$10$fJdqDrzKjPsObp0WScK1RuY/.eEfv3ukGVuy5yFlE1hnLe66EPyZO\",\n        \"email\": \"fiwiji4188@venfee.com\",\n        \"fullName\": \"Gal Gadot\",\n        \"roles\": [\n            \"Role(id=2, name=OWNER, users=[])\"\n        ],\n        \"dateOfBirth\": \"30-04-1985\",\n        \"phoneNumber\": \"6543210987\",\n        \"address\": \"Rosh HaAyin, Israel\",\n        \"createdAt\": \"Thursday, November 21, 2024, 1:36 PM\"\n    },\n    \"status\": 201\n}"},{"id":"29f54777-94b1-44cf-8d89-b60d5d86fe3e","name":"Register User_Failure (duplicate entry)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"fiwiji4188@venfee.com\",\r\n        \"fullName\": \"Gal Gadot\",\r\n        \"dateOfBirth\": \"30-04-1985\",\r\n        \"phoneNumber\": \"6543210987\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:01:41 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: could not execute statement [Duplicate entry 'GalGadot' for key 'users.UNIQUE_username'] [insert into users (address,created_at,date_of_birth,email,full_name,password,phone_number,updated_at,username) values (?,?,?,?,?,?,?,?,?)]; SQL [insert into users (address,created_at,date_of_birth,email,full_name,password,phone_number,updated_at,username) values (?,?,?,?,?,?,?,?,?)]; constraint [users.UNIQUE_username]\",\n    \"timestamp\": \"2024-11-21T19:46:41.4058865\",\n    \"status\": 500\n}"},{"id":"19170502-485b-49ed-9ea6-e1e42466724f","name":"Register User_Failure (validation error)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        // \"password\": \"GalGadot\",\r\n        \"email\": \"fiwiji4188@venfee.com\",\r\n        \"fullName\": \"Gal Gadot\",\r\n        \"dateOfBirth\": \"30-04-1985\",\r\n        \"phoneNumber\": \"6543210987\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:48:29 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        \"password: Password is required\"\n    ],\n    \"status\": 400\n}"},{"id":"2486d2bf-c155-499d-a752-37a376c95281","name":"Register User_Failure (invalid format)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"fiwiji4188@venfee.com\",\r\n        \"fullName\": \"Gal Gadot\",\r\n        \"dateOfBirth\": \"30-14-1985\", // valid format: dd-MM-yyyy\r\n        \"phoneNumber\": \"6543210987\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:05:42 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Bad Request\",\n    \"message\": \"Malformed JSON request\",\n    \"timestamp\": \"2024-11-21T19:50:42.8874988\",\n    \"status\": 400\n}"},{"id":"400d4298-f650-4514-95d9-2b96938c6329","name":"Register User_Failure (unauthorized)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"fiwiji4188@venfee.com\",\r\n        \"fullName\": \"Gal Gadot\",\r\n        \"dateOfBirth\": \"30-14-1985\", \r\n        \"phoneNumber\": \"6543210987\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/register"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:12:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T19:57:12.474104200\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"370148fb-6767-4676-87b4-489acc2c415f"},{"name":"Update User","id":"4fb92552-0f27-4deb-acf7-bf08e06f0f41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"galgadot@gmail.com.com\",\r\n        \"fullName\": \"Gal Von Gadot\",\r\n        \"dateOfBirth\": \"30-04-1985\",\r\n        \"phoneNumber\": \"6543210000\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/update/2","description":"<p>This endpoint allows updating user information via an HTTP PUT request to the specified URL. The request should include a JSON payload with the updated user details such as username, password, email, full name, date of birth, phone number, and address.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>username</code>: (string) The updated username.</p>\n</li>\n<li><p><code>password</code>: (string) The updated password.</p>\n</li>\n<li><p><code>email</code>: (string) The updated email address.</p>\n</li>\n<li><p><code>fullName</code>: (string) The updated full name.</p>\n</li>\n<li><p><code>dateOfBirth</code>: (string) The updated date of birth.</p>\n</li>\n<li><p><code>phoneNumber</code>: (string) The updated phone number.</p>\n</li>\n<li><p><code>address</code>: (string) The updated address.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response is in JSON format and includes the following fields:</p>\n<ul>\n<li><p><code>message</code>: (string) A message related to the update operation.</p>\n</li>\n<li><p><code>user</code>: (object) An object containing the updated user information with the following fields:</p>\n<ul>\n<li><p><code>id</code>: (number) The user ID.</p>\n</li>\n<li><p><code>username</code>: (string) The updated username.</p>\n</li>\n<li><p><code>password</code>: (string) The updated password.</p>\n</li>\n<li><p><code>email</code>: (string) The updated email address.</p>\n</li>\n<li><p><code>fullName</code>: (string) The updated full name.</p>\n</li>\n<li><p><code>roles</code>: (array) An array of user roles.</p>\n</li>\n<li><p><code>dateOfBirth</code>: (string) The updated date of birth.</p>\n</li>\n<li><p><code>phoneNumber</code>: (string) The updated phone number.</p>\n</li>\n<li><p><code>address</code>: (string) The updated address.</p>\n</li>\n<li><p><code>createdAt</code>: (string) The timestamp of user creation.</p>\n</li>\n<li><p><code>updatedAt</code>: (string) The timestamp of the last update.</p>\n</li>\n</ul>\n</li>\n<li><p><code>status</code>: (number) The status of the update operation.</p>\n</li>\n</ul>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"message\": {\"type\": \"string\"},\n        \"user\": {\n            \"type\": \"object\",\n            \"properties\": {\n                \"id\": {\"type\": \"number\"},\n                \"username\": {\"type\": \"string\"},\n                \"password\": {\"type\": \"string\"},\n                \"email\": {\"type\": \"string\"},\n                \"fullName\": {\"type\": \"string\"},\n                \"roles\": {\"type\": \"array\"},\n                \"dateOfBirth\": {\"type\": \"string\"},\n                \"phoneNumber\": {\"type\": \"string\"},\n                \"address\": {\"type\": \"string\"},\n                \"createdAt\": {\"type\": \"string\"},\n                \"updatedAt\": {\"type\": \"string\"}\n            }\n        },\n        \"status\": {\"type\": \"number\"}\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","update","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d551e40c-19e4-4440-9e54-b56503c149a3","name":"Update User_Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"fiwiji4188@venfee.com\",\r\n        \"fullName\": \"Gal Von Gadot\",\r\n        \"dateOfBirth\": \"30-04-1985\",\r\n        \"phoneNumber\": \"6543210000\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/update/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 08:12:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User updated successfully\",\n    \"user\": {\n        \"id\": 2,\n        \"username\": \"GalGadot\",\n        \"password\": \"$2a$10$AILXjzVzd8glgybyeYP9Xu4Y0za8FSPPAcMnunniHnViosxu3Skq2\",\n        \"email\": \"fiwiji4188@venfee.com\",\n        \"fullName\": \"Gal Von Gadot\",\n        \"roles\": [\n            \"Role(id=2, name=OWNER, users=[com.example.inventory_control_system.model.User@42016de8])\"\n        ],\n        \"dateOfBirth\": \"30-04-1985\",\n        \"phoneNumber\": \"6543210000\",\n        \"address\": \"Rosh HaAyin, Israel\",\n        \"createdAt\": \"Thursday, November 21, 2024, 1:36 PM\",\n        \"updatedAt\": \"Thursday, November 21, 2024, 1:40 PM\"\n    },\n    \"status\": 200\n}"},{"id":"856a8d3e-3fc9-4094-9614-a020f14989c6","name":"Update User_Failure (user not found)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"fiwiji4188@venfee.com\",\r\n        \"fullName\": \"Gal Von Gadot\",\r\n        \"dateOfBirth\": \"30-04-1985\",\r\n        \"phoneNumber\": \"6543210000\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/update/1"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:08:17 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: User not found with ID: 1\",\n    \"timestamp\": \"2024-11-21T19:53:17.127481\",\n    \"status\": 500\n}"},{"id":"4bc9f407-b0a4-4cbc-8429-1bd0903faabe","name":"Update User_Failure (unauthorized)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"username\": \"GalGadot\",\r\n        \"password\": \"GalGadot\",\r\n        \"email\": \"galgadot@gmail.com.com\",\r\n        \"fullName\": \"Gal Von Gadot\",\r\n        \"dateOfBirth\": \"30-04-1985\",\r\n        \"phoneNumber\": \"6543210000\",\r\n        \"address\": \"Rosh HaAyin, Israel\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/update/2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:11:03 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T19:56:03.664175600\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"4fb92552-0f27-4deb-acf7-bf08e06f0f41"},{"name":"get all users","id":"bb8eb72a-c0ce-4f18-aa76-afd710f3b954","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/users/all","description":"<h3 id=\"get-apiusersall\">GET /api/users/all</h3>\n<p>This endpoint retrieves all users.</p>\n<h4 id=\"request\">Request</h4>\n<p>This is a GET request to fetch all users.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"users\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"id\": {\n                        \"type\": \"number\"\n                    },\n                    \"username\": {\n                        \"type\": \"string\"\n                    },\n                    \"password\": {\n                        \"type\": \"string\"\n                    },\n                    \"email\": {\n                        \"type\": \"string\"\n                    },\n                    \"fullName\": {\n                        \"type\": \"string\"\n                    },\n                    \"roles\": {\n                        \"type\": \"array\",\n                        \"items\": {\n                            \"type\": \"string\"\n                        }\n                    },\n                    \"dateOfBirth\": {\n                        \"type\": \"string\"\n                    },\n                    \"phoneNumber\": {\n                        \"type\": \"string\"\n                    },\n                    \"address\": {\n                        \"type\": \"string\"\n                    },\n                    \"createdAt\": {\n                        \"type\": \"string\"\n                    },\n                    \"updatedAt\": {\n                        \"type\": \"string\"\n                    }\n                }\n            }\n        },\n        \"status\": {\n            \"type\": \"number\"\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"42e9e312-1222-41c2-b62a-dea8eda06990","name":"get all users_Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/users/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 08:05:56 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"users\": [\n        {\n            \"id\": 2,\n            \"username\": \"GalGadot\",\n            \"password\": \"$2a$10$.eRBcEhklmc/6r9Ssxjw7.uEDKeikkS3hkki24caekcYz1QrDrijm\",\n            \"email\": \"fiwiji4188@venfee.com\",\n            \"fullName\": \"Gal Von Gadot\",\n            \"roles\": [\n                \"OWNER\"\n            ],\n            \"dateOfBirth\": \"30-04-1985\",\n            \"phoneNumber\": \"6543210000\",\n            \"address\": \"Rosh HaAyin, Israel\",\n            \"createdAt\": \"Thursday, November 21, 2024, 1:36 PM\",\n            \"updatedAt\": \"Thursday, November 21, 2024, 1:40 PM\"\n        }\n    ],\n    \"status\": 200\n}"},{"id":"05b0daa8-ac47-4e87-a991-83e8b7934b6e","name":"get all users_Failure (unauthorized)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/users/all"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:14:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T19:59:12.851733500\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"bb8eb72a-c0ce-4f18-aa76-afd710f3b954"},{"name":"get user by id","id":"ba86ee71-fa11-4a00-b05d-6538fd060f6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/users/2","description":"<h3 id=\"get-apiusers2\">GET /api/users/2</h3>\n<p>This endpoint retrieves the details of a specific user with the given ID.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this request.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>user</code> (object): An object containing the details of the user, including their ID, username, password, email, full name, roles, date of birth, phone number, address, creation timestamp, and last update timestamp.</p>\n<ul>\n<li><p><code>id</code> (number): The unique identifier of the user.</p>\n</li>\n<li><p><code>username</code> (string): The username of the user.</p>\n</li>\n<li><p><code>password</code> (string): The password of the user.</p>\n</li>\n<li><p><code>email</code> (string): The email address of the user.</p>\n</li>\n<li><p><code>fullName</code> (string): The full name of the user.</p>\n</li>\n<li><p><code>roles</code> (array): An array containing the roles assigned to the user.</p>\n</li>\n<li><p><code>dateOfBirth</code> (string): The date of birth of the user.</p>\n</li>\n<li><p><code>phoneNumber</code> (string): The phone number of the user.</p>\n</li>\n<li><p><code>address</code> (string): The address of the user.</p>\n</li>\n<li><p><code>createdAt</code> (string): The timestamp when the user was created.</p>\n</li>\n<li><p><code>updatedAt</code> (string): The timestamp when the user was last updated.</p>\n</li>\n</ul>\n</li>\n<li><p><code>status</code> (number): The status of the response.</p>\n</li>\n</ul>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"user\": {\n        \"id\": 0,\n        \"username\": \"\",\n        \"password\": \"\",\n        \"email\": \"\",\n        \"fullName\": \"\",\n        \"roles\": [\"\"],\n        \"dateOfBirth\": \"\",\n        \"phoneNumber\": \"\",\n        \"address\": \"\",\n        \"createdAt\": \"\",\n        \"updatedAt\": \"\"\n    },\n    \"status\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2c6d9155-81eb-4f52-8bcc-313e5c585bf6","name":"get user by id_Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/users/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 08:06:24 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"id\": 2,\n        \"username\": \"GalGadot\",\n        \"password\": \"$2a$10$.eRBcEhklmc/6r9Ssxjw7.uEDKeikkS3hkki24caekcYz1QrDrijm\",\n        \"email\": \"fiwiji4188@venfee.com\",\n        \"fullName\": \"Gal Von Gadot\",\n        \"roles\": [\n            \"OWNER\"\n        ],\n        \"dateOfBirth\": \"30-04-1985\",\n        \"phoneNumber\": \"6543210000\",\n        \"address\": \"Rosh HaAyin, Israel\",\n        \"createdAt\": \"Thursday, November 21, 2024, 1:36 PM\",\n        \"updatedAt\": \"Thursday, November 21, 2024, 1:40 PM\"\n    },\n    \"status\": 200\n}"},{"id":"926ef492-902e-4277-9785-c2a39ba8fab4","name":"get user by id_Failure (user not found)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/users/500"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:15:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User not found with ID: 500\",\n    \"status\": 404\n}"},{"id":"eed7b546-f81d-4d5d-b93f-9f8c697b031c","name":"get user by id_Failure (unauthorized)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/api/users/2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:16:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:01:30.743853400\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"ba86ee71-fa11-4a00-b05d-6538fd060f6a"},{"name":"delete user by id","id":"8a8b3fd6-5f28-41a2-85d0-1b9c14209822","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/users/delete/5","description":"<h3 id=\"delete-apiusersdeleteid\">DELETE /api/users/delete/{id}</h3>\n<p>This endpoint is used to delete a user with the specified ID.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body parameters are required for this request.</p>\n<ul>\n<li><p>Path Parameters</p>\n<ul>\n<li><code>id</code> (integer): The ID of the user to be deleted.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is in JSON format and follows the 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        \"status\": {\n            \"type\": \"integer\"\n        }\n    }\n}\n\n</code></pre>\n<p>The response contains the following fields:</p>\n<ul>\n<li><p><code>message</code> (string): A message related to the deletion operation.</p>\n</li>\n<li><p><code>status</code> (integer): The status code of the deletion operation.</p>\n</li>\n</ul>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"\",\n    \"status\": 0\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","delete","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9e9ea1ca-32ae-4517-8c6f-9ea098f2475e","name":"delete user by id_Success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/users/delete/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:23:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User with ID: 5 deleted successfully.\",\n    \"status\": 200\n}"},{"id":"74f83f5b-b475-4759-aa51-80905fd2c997","name":"delete user by id_Failure (user not found)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/users/delete/"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 21 Nov 2024 14:18:43 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Internal Server Error\",\n    \"message\": \"An unexpected error occurred: No static resource api/users/delete.\",\n    \"timestamp\": \"2024-11-21T20:03:43.0243377\",\n    \"status\": 500\n}"},{"id":"7bab1996-724b-4b78-a221-7e396cf2181f","name":"delete user by id_Failure (unauthorized)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/users/delete/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json;charset=ISO-8859-1"},{"key":"Content-Length","value":"145"},{"key":"Date","value":"Thu, 21 Nov 2024 14:19:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"timestamp\": \"2024-11-21T20:04:10.439384600\",\n    \"status\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Authentication is required to access this resource.\"\n}"}],"_postman_id":"8a8b3fd6-5f28-41a2-85d0-1b9c14209822"}],"id":"1b25ce2d-462a-4d57-9987-558da0886146","description":"<p>This folder manages user-related operations, including user registration, profile updates, and user account management.</p>\n<p><strong>Available Endpoints:</strong></p>\n<ul>\n<li><p><strong>POST Register User</strong></p>\n<ul>\n<li><p>Creates new user accounts</p>\n</li>\n<li><p>Handles user registration</p>\n</li>\n</ul>\n</li>\n<li><p><strong>PUT Update User</strong></p>\n<ul>\n<li><p>Modifies existing user information</p>\n</li>\n<li><p>Handles user profile updates</p>\n</li>\n</ul>\n</li>\n<li><p><strong>GET get all users</strong></p>\n<ul>\n<li><p>Lists all users in the system</p>\n</li>\n<li><p>Provides complete user overview</p>\n</li>\n</ul>\n</li>\n<li><p><strong>GET get user by id</strong></p>\n<ul>\n<li><p>Retrieves specific user details</p>\n</li>\n<li><p>Searches users by unique identifier</p>\n</li>\n</ul>\n</li>\n<li><p><strong>DEL delete user by id</strong></p>\n<ul>\n<li><p>Removes user accounts</p>\n</li>\n<li><p>Handles user deletion</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"1b25ce2d-462a-4d57-9987-558da0886146","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","id":"1b1286ad-9d84-4432-91e9-acdafa9a8883","name":"Inventory Control System API documentation","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"id":"ee7eea7e-5492-47da-b8c5-0190d07fa8c8","key":"baseUrl","value":"https://farming-simulator.pstmn.io"}]}