{"info":{"_postman_id":"0c86c178-c6cc-4ba5-a3e1-8b2a3d99968d","name":"ayykori","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"20773865","collectionId":"0c86c178-c6cc-4ba5-a3e1-8b2a3d99968d","publishedId":"2s9Yyth1Jm","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-31T17:20:33.000Z"},"item":[{"name":"authentication","item":[{"name":"registration","event":[{"listen":"test","script":{"id":"103650b7-18dc-443a-9f1c-cd8dde1e21b6","exec":[" const jsonData=pm.response.json();\r"," pm.globals.set(\"token\",jsonData.token);"],"type":"text/javascript"}}],"id":"8a012a80-718d-4171-bfc7-98bedfd173cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"chaudhuree\",\r\n    \"email\":\"chaudhuree@gmail.com\",\r\n    \"password\":\"111111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/register","urlObject":{"path":["register"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a012a80-718d-4171-bfc7-98bedfd173cc"},{"name":"login","event":[{"listen":"test","script":{"id":"103650b7-18dc-443a-9f1c-cd8dde1e21b6","exec":[" const jsonData=pm.response.json();\r"," pm.globals.set(\"token\",jsonData.token);"],"type":"text/javascript"}}],"id":"e5721887-e2ce-419f-8d96-405d25755618","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"chaudhuree@gmail.com\",\r\n    \"password\":\"111111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/login","urlObject":{"path":["login"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5721887-e2ce-419f-8d96-405d25755618"},{"name":"logincheck","id":"cccdfa20-cffa-4c90-b97c-b9fbbad16d54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/v1/login-check","urlObject":{"path":["login-check"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"cccdfa20-cffa-4c90-b97c-b9fbbad16d54"}],"id":"70e0abec-42bc-4136-b913-cad3c8a817e4","_postman_id":"70e0abec-42bc-4136-b913-cad3c8a817e4","description":""},{"name":"inventory","item":[{"name":"createProduct","id":"be243522-b48d-47e3-8b8b-f89e6bafa0bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productName\":\"apple watch\",\r\n    \"price\":100,\r\n    \"availableQuantity\":48\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/create-product","urlObject":{"path":["create-product"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"be243522-b48d-47e3-8b8b-f89e6bafa0bd"},{"name":"getAllProducts","id":"d8af555e-1d5d-4c30-a6d1-6d530bbef28f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productName\":\"apple watch\",\r\n    \"price\":100,\r\n    \"availableQuantity\":48\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/all-products","urlObject":{"path":["all-products"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8af555e-1d5d-4c30-a6d1-6d530bbef28f"},{"name":"singelProduct","id":"0defec0c-a48e-4247-ac63-f7422b0fd31e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productName\":\"apple watch\",\r\n    \"price\":100,\r\n    \"availableQuantity\":48\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/product/:id","urlObject":{"path":["product",":id"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[{"type":"any","value":"65ba24e55637c4e66d1b24af","key":"id"}]}},"response":[],"_postman_id":"0defec0c-a48e-4247-ac63-f7422b0fd31e"},{"name":"deleteProduct","id":"ff6d1f69-e1fd-49db-bcc6-de5fc1987ab6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productName\":\"apple watch\",\r\n    \"price\":100,\r\n    \"availableQuantity\":48\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/product/:id","urlObject":{"path":["product",":id"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[{"type":"any","value":"65ba24e55637c4e66d1b24af","key":"id"}]}},"response":[],"_postman_id":"ff6d1f69-e1fd-49db-bcc6-de5fc1987ab6"},{"name":"updateProduct","id":"180bfce4-66dc-4ac0-9d1e-ff6aa0718f7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productName\":\"apple watch ⌚\",\r\n    \"price\":100,\r\n    \"availableQuantity\":48\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/product/:id","urlObject":{"path":["product",":id"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[{"type":"any","value":"65ba24e55637c4e66d1b24af","key":"id"}]}},"response":[],"_postman_id":"180bfce4-66dc-4ac0-9d1e-ff6aa0718f7f"}],"id":"92ab80f5-4c46-4c0a-9503-8e93373caa07","_postman_id":"92ab80f5-4c46-4c0a-9503-8e93373caa07","description":""},{"name":"order","item":[{"name":"createOrder","id":"ecdaacdc-ef47-41b1-b159-9457eb942694","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"client\": \"65ba08b61345395d76bebb0a\",\r\n    \"products\": [\r\n        {\r\n            \"productId\": \"65ba2623622839a5ee198eda\",\r\n            \"quantity\": 4\r\n        }\r\n    ],\r\n    \"address\":\"uttara,dakkhinkhan\",\r\n    \"provider\":\"Sundarban\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/order","urlObject":{"path":["order"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecdaacdc-ef47-41b1-b159-9457eb942694"},{"name":"getAllOrders","id":"f712de9c-8920-4a25-b989-ef750e9faa21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/v1/all-orders","urlObject":{"path":["all-orders"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f712de9c-8920-4a25-b989-ef750e9faa21"},{"name":"updateOrder","id":"2ed81b66-6497-496b-898b-15f059f1a517","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status\":\"cancelled\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/order/:id","urlObject":{"path":["order",":id"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[{"type":"any","value":"65ba4015a6eab4e5302ec1d0","key":"id"}]}},"response":[],"_postman_id":"2ed81b66-6497-496b-898b-15f059f1a517"},{"name":"updatePaymentStatus","id":"39d7bded-dcbb-4a1e-b8a5-14b0af3d39f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status\":\"refunded\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/payment/:id","urlObject":{"path":["payment",":id"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[{"type":"any","value":"65ba63b68d408d278145d0eb","key":"id"}]}},"response":[],"_postman_id":"39d7bded-dcbb-4a1e-b8a5-14b0af3d39f9"},{"name":"getSingleOrder","id":"66baa9aa-8749-44e4-ac16-abf970a5f5b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/v1/order/:id","urlObject":{"path":["order",":id"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[{"type":"any","value":"65ba4773e5db9d9cc5f2c9db","key":"id"}]}},"response":[],"_postman_id":"66baa9aa-8749-44e4-ac16-abf970a5f5b7"}],"id":"2c20bb89-d763-4d3b-8cad-91c38b146d0c","_postman_id":"2c20bb89-d763-4d3b-8cad-91c38b146d0c","description":""}],"event":[{"listen":"prerequest","script":{"id":"0543aa89-1bec-4ba1-a5fe-d9d729fc3135","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"30964747-f576-40e6-bb68-1ceb4c0fb0b8","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:5000/api/v1","type":"string"}]}