{"info":{"_postman_id":"892d6a0f-79b2-4dbd-a2e9-78dcca589195","name":"Clothing Store API","description":"<html><head></head><body><p>Rest API used for clothing stores that can provide transaction reports, customer data and clothing data.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24721460","collectionId":"892d6a0f-79b2-4dbd-a2e9-78dcca589195","publishedId":"2s8ZDR75dH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-11T15:31:41.000Z"},"item":[{"name":"Product","item":[{"name":"The highest and lowest product prices","id":"e0d4aca3-02ec-4e6c-bd84-95f8ca987c89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/product/highest-lowest-prices","urlObject":{"path":["product","highest-lowest-prices"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[{"id":"7fb21303-d250-46b3-8730-6ba3192d3ed1","name":"The highest and lowest product prices","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/product/highest-lowest-prices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"525"},{"key":"ETag","value":"W/\"20d-VstT7U9veyJQs/B+W8+kA1fF1EU\""},{"key":"Date","value":"Wed, 11 Jan 2023 15:06:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Shows product data with the highest and lowest prices\",\n    \"highestPricedProduct\": {\n        \"id\": 3,\n        \"idBranch\": 1,\n        \"name\": \"Baju 3\",\n        \"category\": \"Seragam\",\n        \"price\": 25000,\n        \"stock\": 15,\n        \"sold\": 100,\n        \"createdAt\": \"2023-01-11T10:56:25.569Z\",\n        \"updatedAt\": \"2023-01-11T10:56:25.569Z\",\n        \"Branch\": {\n            \"name\": \"Medan\"\n        }\n    },\n    \"lowestPricedProduct\": {\n        \"id\": 2,\n        \"idBranch\": 2,\n        \"name\": \"Baju 2\",\n        \"category\": \"Jas\",\n        \"price\": 15000,\n        \"stock\": 8,\n        \"sold\": 20,\n        \"createdAt\": \"2023-01-11T10:56:25.569Z\",\n        \"updatedAt\": \"2023-01-11T10:56:25.569Z\",\n        \"Branch\": {\n            \"name\": \"Jakarta\"\n        }\n    }\n}"}],"_postman_id":"e0d4aca3-02ec-4e6c-bd84-95f8ca987c89"},{"name":"Products that have Increased Sales","id":"727c2139-bb58-4099-a6b6-418897f50d06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://localhost:3000/api/product/increase-in-product-sales?date=2023-01-01","urlObject":{"path":["product","increase-in-product-sales"],"host":["http://localhost:3000/api"],"query":[{"key":"date","value":"2023-01-01"}],"variable":[]}},"response":[{"id":"c19c4ad4-0544-4ecf-801b-4b6423531ab5","name":"Products that have Increased Sales","originalRequest":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"date","value":"2023-01-01","type":"text"}]},"url":"http://localhost:3000/api/product/increase-in-product-sales"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"938"},{"key":"ETag","value":"W/\"3aa-JhoMRTfypbijaCK0bUeTRse0d5g\""},{"key":"Date","value":"Wed, 11 Jan 2023 15:05:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Shows products that experienced an increase in sales on 2023-01-01 compared to the previous month\",\n    \"result\": [\n        {\n            \"idProduct\": 3,\n            \"quantitySoldThisMonth\": \"4\",\n            \"quantitySoldLastMonth\": \"0\",\n            \"Product\": {\n                \"id\": 3,\n                \"idBranch\": 1,\n                \"name\": \"Baju 3\",\n                \"category\": \"Seragam\",\n                \"price\": 25000,\n                \"stock\": 15,\n                \"sold\": 100,\n                \"createdAt\": \"2023-01-11T10:56:25.569Z\",\n                \"updatedAt\": \"2023-01-11T10:56:25.569Z\"\n            },\n            \"increase\": 4\n        },\n        {\n            \"idProduct\": 1,\n            \"quantitySoldThisMonth\": \"0\",\n            \"quantitySoldLastMonth\": \"0\",\n            \"Product\": {\n                \"id\": 1,\n                \"idBranch\": 1,\n                \"name\": \"Baju 1\",\n                \"category\": \"Batik\",\n                \"price\": 20000,\n                \"stock\": 10,\n                \"sold\": 200,\n                \"createdAt\": \"2023-01-11T10:56:25.568Z\",\n                \"updatedAt\": \"2023-01-11T10:56:25.569Z\"\n            },\n            \"increase\": 0\n        },\n        {\n            \"idProduct\": 2,\n            \"quantitySoldThisMonth\": \"0\",\n            \"quantitySoldLastMonth\": \"2\",\n            \"Product\": {\n                \"id\": 2,\n                \"idBranch\": 2,\n                \"name\": \"Baju 2\",\n                \"category\": \"Jas\",\n                \"price\": 15000,\n                \"stock\": 8,\n                \"sold\": 20,\n                \"createdAt\": \"2023-01-11T10:56:25.569Z\",\n                \"updatedAt\": \"2023-01-11T10:56:25.569Z\"\n            },\n            \"increase\": -2\n        }\n    ]\n}"}],"_postman_id":"727c2139-bb58-4099-a6b6-418897f50d06"},{"name":"Most purchased product data","id":"88fbed8a-3d01-4c61-b618-cf992faf2e42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/product/top-selling-products?month=1&year=2022","urlObject":{"path":["product","top-selling-products"],"host":["http://localhost:3000/api"],"query":[{"key":"month","value":"1"},{"key":"year","value":"2022"}],"variable":[]}},"response":[{"id":"79f80b47-0d8b-460d-8df4-de64dac224b6","name":"Most purchased product data","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/product/top-selling-products?month=1&year=2022","host":["http://localhost:3000/api"],"path":["product","top-selling-products"],"query":[{"key":"month","value":"1"},{"key":"year","value":"2022"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"822"},{"key":"ETag","value":"W/\"336-H7OuejiNbYXffylm5oin0Zd5200\""},{"key":"Date","value":"Wed, 11 Jan 2023 15:05:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Displays the most purchased products in month 1 of 2022 in each branch\",\n    \"branch\": [\n        {\n            \"id\": 1,\n            \"name\": \"Medan\",\n            \"topList\": [\n                {\n                    \"idProduct\": 1,\n                    \"quantity\": \"4\",\n                    \"Product\": {\n                        \"id\": 1,\n                        \"idBranch\": 1,\n                        \"name\": \"Baju 1\",\n                        \"category\": \"Batik\",\n                        \"price\": 20000,\n                        \"stock\": 10,\n                        \"sold\": 200,\n                        \"createdAt\": \"2023-01-11T10:56:25.568Z\",\n                        \"updatedAt\": \"2023-01-11T10:56:25.569Z\"\n                    }\n                },\n                {\n                    \"idProduct\": 3,\n                    \"quantity\": \"1\",\n                    \"Product\": {\n                        \"id\": 3,\n                        \"idBranch\": 1,\n                        \"name\": \"Baju 3\",\n                        \"category\": \"Seragam\",\n                        \"price\": 25000,\n                        \"stock\": 15,\n                        \"sold\": 100,\n                        \"createdAt\": \"2023-01-11T10:56:25.569Z\",\n                        \"updatedAt\": \"2023-01-11T10:56:25.569Z\"\n                    }\n                }\n            ]\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Jakarta\",\n            \"topList\": [\n                {\n                    \"idProduct\": 2,\n                    \"quantity\": \"3\",\n                    \"Product\": {\n                        \"id\": 2,\n                        \"idBranch\": 2,\n                        \"name\": \"Baju 2\",\n                        \"category\": \"Jas\",\n                        \"price\": 15000,\n                        \"stock\": 8,\n                        \"sold\": 20,\n                        \"createdAt\": \"2023-01-11T10:56:25.569Z\",\n                        \"updatedAt\": \"2023-01-11T10:56:25.569Z\"\n                    }\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"88fbed8a-3d01-4c61-b618-cf992faf2e42"},{"name":"Get All Products in Database","id":"7d1c6456-0a92-4b9f-b49e-a2bab1b15710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/product/","urlObject":{"path":["product",""],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[{"id":"f4a97fde-c50f-4a4a-9a30-d1f0d9cf4245","name":"Get All Products in Database","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/product/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"756"},{"key":"ETag","value":"W/\"2f4-YcO8E9hjqPU9j+KYWJmqcbGKfpk\""},{"key":"Date","value":"Wed, 11 Jan 2023 16:16:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Show all products in database\",\n    \"products\": [\n        {\n            \"id\": 1,\n            \"idBranch\": 1,\n            \"name\": \"Baju 1\",\n            \"category\": \"Batik\",\n            \"price\": 20000,\n            \"stock\": 10,\n            \"sold\": 200,\n            \"createdAt\": \"2023-01-11T15:23:33.793Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.793Z\"\n        },\n        {\n            \"id\": 2,\n            \"idBranch\": 2,\n            \"name\": \"Baju 2\",\n            \"category\": \"Jas\",\n            \"price\": 15000,\n            \"stock\": 8,\n            \"sold\": 20,\n            \"createdAt\": \"2023-01-11T15:23:33.793Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.793Z\"\n        },\n        {\n            \"id\": 3,\n            \"idBranch\": 1,\n            \"name\": \"Baju 3\",\n            \"category\": \"Seragam\",\n            \"price\": 25000,\n            \"stock\": 15,\n            \"sold\": 100,\n            \"createdAt\": \"2023-01-11T15:23:33.793Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.793Z\"\n        },\n        {\n            \"id\": 4,\n            \"idBranch\": 2,\n            \"name\": \"Baju 4\",\n            \"category\": \"Batik\",\n            \"price\": 25000,\n            \"stock\": 9,\n            \"sold\": 152,\n            \"createdAt\": \"2023-01-11T15:23:33.793Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.793Z\"\n        }\n    ]\n}"}],"_postman_id":"7d1c6456-0a92-4b9f-b49e-a2bab1b15710"}],"id":"b556f5e2-6acd-4f7e-bec5-94936ee625aa","_postman_id":"b556f5e2-6acd-4f7e-bec5-94936ee625aa","description":""},{"name":"Customer","item":[{"name":"Create Customer","id":"5176b30d-4a39-4931-a804-3ae98f956d98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"idBranch","value":"2","type":"text"},{"key":"name","value":"Tegar Hanip","type":"text"},{"key":"address","value":"Villa Indah","type":"text"},{"key":"phone","value":"081123475983","type":"text"}]},"url":"http://localhost:3000/api/customer/create","urlObject":{"path":["customer","create"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[{"id":"8c2ffdcd-5c92-4dfd-96fa-4595c36c50cf","name":"Create Customer","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"idBranch","value":"2","type":"text"},{"key":"name","value":"Tegar Hanip","type":"text"},{"key":"address","value":"Villa Indah","type":"text"},{"key":"phone","value":"081123475983","type":"text"}]},"url":"http://localhost:3000/api/customer/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"237"},{"key":"ETag","value":"W/\"ed-FV3sgcpScDOaf9gvpZDN/BIC+2A\""},{"key":"Date","value":"Wed, 11 Jan 2023 15:23:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Customer created successfully\",\n    \"data\": {\n        \"id\": 5,\n        \"idBranch\": 2,\n        \"name\": \"Tegar Hanip\",\n        \"address\": \"Villa Indah\",\n        \"phone\": \"081123475983\",\n        \"updatedAt\": \"2023-01-11T15:23:57.833Z\",\n        \"createdAt\": \"2023-01-11T15:23:57.833Z\"\n    }\n}"}],"_postman_id":"5176b30d-4a39-4931-a804-3ae98f956d98"},{"name":"The newest and oldest customer data","id":"f2e5a123-9988-48f4-a3a3-2387c56b57ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/customer/oldest-newest-registrants?idBranch=2","urlObject":{"path":["customer","oldest-newest-registrants"],"host":["http://localhost:3000/api"],"query":[{"key":"idBranch","value":"2"}],"variable":[]}},"response":[{"id":"fbecc03a-df32-4744-85fc-11040412a455","name":"The newest and oldest customer data","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/customer/oldest-newest-registrants?idBranch=2","host":["http://localhost:3000/api"],"path":["customer","oldest-newest-registrants"],"query":[{"key":"idBranch","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"505"},{"key":"ETag","value":"W/\"1f9-c6V8Xe3tAw8V8paf6OC+/kCojxY\""},{"key":"Date","value":"Wed, 11 Jan 2023 15:24:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Shows the newest and oldest customer data by branch Jakarta\",\n    \"newestCustomer\": {\n        \"id\": 5,\n        \"idBranch\": 2,\n        \"name\": \"Tegar Hanip\",\n        \"address\": \"Villa Indah\",\n        \"phone\": \"081123475983\",\n        \"createdAt\": \"2023-01-11T15:23:57.833Z\",\n        \"updatedAt\": \"2023-01-11T15:23:57.833Z\",\n        \"Branch\": {\n            \"name\": \"Jakarta\"\n        }\n    },\n    \"oldestCustomer\": {\n        \"id\": 3,\n        \"idBranch\": 2,\n        \"name\": \"Hanip\",\n        \"address\": \"Nusa\",\n        \"phone\": \"081234567892\",\n        \"createdAt\": \"2023-01-11T15:23:33.814Z\",\n        \"updatedAt\": \"2023-01-11T15:23:33.814Z\",\n        \"Branch\": {\n            \"name\": \"Jakarta\"\n        }\n    }\n}"}],"_postman_id":"f2e5a123-9988-48f4-a3a3-2387c56b57ca"},{"name":"Customer data that spend the most","id":"59158745-444a-4a06-b155-36060f74ef9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/customer/top-spending-customers?month=1&year=2023","urlObject":{"path":["customer","top-spending-customers"],"host":["http://localhost:3000/api"],"query":[{"key":"month","value":"1"},{"key":"year","value":"2023"}],"variable":[]}},"response":[{"id":"2e145bf3-b2bf-4c7d-a211-f8d4cabdd328","name":"Customer data that spend the most","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/customer/top-spending-customers?month=1&year=2023","host":["http://localhost:3000/api"],"path":["customer","top-spending-customers"],"query":[{"key":"month","value":"1"},{"key":"year","value":"2023"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"368"},{"key":"ETag","value":"W/\"170-KHCuADWppKyTQUnS5FYFJEx6R7k\""},{"key":"Date","value":"Wed, 11 Jan 2023 15:04:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Displays Customer Data that spend the most in month 1 of 2023 in each branch\",\n    \"branch\": [\n        {\n            \"id\": 1,\n            \"name\": \"Medan\",\n            \"topList\": [\n                {\n                    \"idCustomer\": 2,\n                    \"totalPrice\": \"230000\",\n                    \"Customer\": {\n                        \"id\": 2,\n                        \"idBranch\": 1,\n                        \"name\": \"Naufal\",\n                        \"address\": \"Nusa Indah\",\n                        \"phone\": \"081234567891\",\n                        \"createdAt\": \"2023-01-11T10:56:25.586Z\",\n                        \"updatedAt\": \"2023-01-11T10:56:25.586Z\"\n                    }\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"59158745-444a-4a06-b155-36060f74ef9f"},{"name":"Get All Customers in Database","id":"16fdaeb3-ff27-4763-b2b0-2b32bf780a4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/customer/","urlObject":{"path":["customer",""],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[{"id":"17673b24-1d70-4456-bc6a-eb82a24d3496","name":"Get All Customers in Database","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/customer/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"892"},{"key":"ETag","value":"W/\"37c-D8mdcyGHwyKRr/NScxkXk3ksekE\""},{"key":"Date","value":"Wed, 11 Jan 2023 16:15:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Show all customers in database\",\n    \"customers\": [\n        {\n            \"id\": 1,\n            \"idBranch\": 1,\n            \"name\": \"Tegar\",\n            \"address\": \"Villa Nusa Indah\",\n            \"phone\": \"081234567890\",\n            \"createdAt\": \"2023-01-11T15:23:33.814Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.814Z\"\n        },\n        {\n            \"id\": 2,\n            \"idBranch\": 1,\n            \"name\": \"Naufal\",\n            \"address\": \"Nusa Indah\",\n            \"phone\": \"081234567891\",\n            \"createdAt\": \"2023-01-11T15:23:33.814Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.814Z\"\n        },\n        {\n            \"id\": 3,\n            \"idBranch\": 2,\n            \"name\": \"Hanip\",\n            \"address\": \"Nusa\",\n            \"phone\": \"081234567892\",\n            \"createdAt\": \"2023-01-11T15:23:33.814Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.814Z\"\n        },\n        {\n            \"id\": 4,\n            \"idBranch\": 2,\n            \"name\": \"Tegar Naufal\",\n            \"address\": \"Indah\",\n            \"phone\": \"081234567893\",\n            \"createdAt\": \"2023-01-11T15:23:33.814Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.814Z\"\n        },\n        {\n            \"id\": 5,\n            \"idBranch\": 2,\n            \"name\": \"Tegar Hanip\",\n            \"address\": \"Villa Indah\",\n            \"phone\": \"081123475983\",\n            \"createdAt\": \"2023-01-11T15:23:57.833Z\",\n            \"updatedAt\": \"2023-01-11T15:23:57.833Z\"\n        }\n    ]\n}"}],"_postman_id":"16fdaeb3-ff27-4763-b2b0-2b32bf780a4c"}],"id":"dfe1d32b-4d11-438e-82cb-83292bcb14c3","_postman_id":"dfe1d32b-4d11-438e-82cb-83292bcb14c3","description":""},{"name":"Branch","item":[{"name":"Total sales data for each branch","id":"ed734595-b2a0-40da-b6af-7d3294a839b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/branch/branch-sales-report?year=2022","urlObject":{"path":["branch","branch-sales-report"],"host":["http://localhost:3000/api"],"query":[{"key":"year","value":"2022"}],"variable":[]}},"response":[{"id":"7d572f91-e9ed-465d-b61b-c05a6cb82bd4","name":"Total sales data for each branch","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/branch/branch-sales-report?year=2022","host":["http://localhost:3000/api"],"path":["branch","branch-sales-report"],"query":[{"key":"year","value":"2022"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"181"},{"key":"ETag","value":"W/\"b5-Yw/O5Yyt3zBJxGTFXj6ZoOVbSow\""},{"key":"Date","value":"Wed, 11 Jan 2023 15:05:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Shows the total sales of each branch in 2022\",\n    \"branch\": [\n        {\n            \"id\": 1,\n            \"name\": \"Medan\",\n            \"totalSales\": \"130000\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Jakarta\",\n            \"totalSales\": \"90000\"\n        }\n    ]\n}"}],"_postman_id":"ed734595-b2a0-40da-b6af-7d3294a839b3"},{"name":"Get All Branches in Database","id":"80be2e02-9ef5-4d9a-9e29-8d3f283e6d75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/branch/","urlObject":{"path":["branch",""],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[{"id":"f1d1ed16-c4d5-4279-961c-cf51108e1dcd","name":"Get All Branches in Database","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/branch/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"521"},{"key":"ETag","value":"W/\"209-VlNiM794OBeDRCWZaVl6wz7dZBM\""},{"key":"Date","value":"Wed, 11 Jan 2023 16:18:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Show all branches in database\",\n    \"branches\": [\n        {\n            \"id\": 1,\n            \"name\": \"Medan\",\n            \"address\": \"Jl. M.H Thamrin No.140, Pusat Ps., Kec. Medan Kota, Kota Medan, Sumatera Utara 20212\",\n            \"createdAt\": \"2023-01-11T15:23:33.818Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.818Z\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Jakarta\",\n            \"address\": \"Jl. Jatinegara Timur IV No.73, RT.4/RW.7, Rw. Bunga, Kecamatan Jatinegara, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13350\",\n            \"createdAt\": \"2023-01-11T15:23:33.818Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.818Z\"\n        }\n    ]\n}"}],"_postman_id":"80be2e02-9ef5-4d9a-9e29-8d3f283e6d75"}],"id":"2eb378a4-8eae-4d75-89b2-033a0b8f26dd","_postman_id":"2eb378a4-8eae-4d75-89b2-033a0b8f26dd","description":""},{"name":"Product Sold","item":[{"name":"Get All Products Sold in Database","id":"4d1bf29b-5eda-45ff-bc2e-3dbe49dc6ba0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/product-sold/","urlObject":{"path":["product-sold",""],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[{"id":"592914cb-ef86-44a0-ac84-4fb1466e5453","name":"Get All Branches in Database","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/branch/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"521"},{"key":"ETag","value":"W/\"209-VlNiM794OBeDRCWZaVl6wz7dZBM\""},{"key":"Date","value":"Wed, 11 Jan 2023 16:18:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": \"Show all branches in database\",\n    \"branches\": [\n        {\n            \"id\": 1,\n            \"name\": \"Medan\",\n            \"address\": \"Jl. M.H Thamrin No.140, Pusat Ps., Kec. Medan Kota, Kota Medan, Sumatera Utara 20212\",\n            \"createdAt\": \"2023-01-11T15:23:33.818Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.818Z\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Jakarta\",\n            \"address\": \"Jl. Jatinegara Timur IV No.73, RT.4/RW.7, Rw. Bunga, Kecamatan Jatinegara, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13350\",\n            \"createdAt\": \"2023-01-11T15:23:33.818Z\",\n            \"updatedAt\": \"2023-01-11T15:23:33.818Z\"\n        }\n    ]\n}"}],"_postman_id":"4d1bf29b-5eda-45ff-bc2e-3dbe49dc6ba0"}],"id":"2e17c62e-6ee0-41db-b908-486ddd263545","_postman_id":"2e17c62e-6ee0-41db-b908-486ddd263545","description":""}],"event":[{"listen":"prerequest","script":{"id":"192682a7-de84-424b-8908-56904e7d5f62","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"76cce921-8951-4ec3-a6ad-30883885916f","type":"text/javascript","exec":[""]}}],"variable":[{"key":"endpoint","value":"http://localhost:3000/api"},{"key":"endpoint","value":"clothing-store-rest-api-production.up.railway.app/api","type":"string","disabled":true}]}