{"info":{"_postman_id":"914105d9-d4ad-41a4-bca2-2274d8d6217c","name":"store-nestjs","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6859509","collectionId":"914105d9-d4ad-41a4-bca2-2274d8d6217c","publishedId":"2s8Z75TAV7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-09T05:54:48.000Z"},"item":[{"name":"get all stores","id":"1da3077a-5db4-4cd7-93d1-8a67d2aa1877","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/api/v2/store","urlObject":{"path":["api","v2","store"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"d045e4f9-0ce0-443d-ad96-cbb4c658cf47","name":"get all stores","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v2/store"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"248"},{"key":"ETag","value":"W/\"f8-24nBt9CaVlfZN8wkKLWC2D6FhsU\""},{"key":"Date","value":"Tue, 10 Jan 2023 01:23:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"adidas clothes méxico\",\n        \"createdAt\": 1673313480527\n    },\n    {\n        \"id\": 2,\n        \"name\": \"sterilite méxico\",\n        \"createdAt\": 1673313480527\n    },\n    {\n        \"id\": 3,\n        \"name\": \"amasón méxico\",\n        \"createdAt\": 1673313480527\n    },\n    {\n        \"id\": 4,\n        \"name\": \"apple méxico\",\n        \"createdAt\": 1673313480527\n    }\n]"}],"_postman_id":"1da3077a-5db4-4cd7-93d1-8a67d2aa1877"},{"name":"get store by id","id":"056dd748-ba7b-4df5-bb49-3961f8c7e71a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/api/v2/store/1","urlObject":{"path":["api","v2","store","1"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"3ce99ba8-de31-4aad-9d86-ee59ca4a221d","name":"get store by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v2/store/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"ETag","value":"W/\"42-j4aVXEd17K/+mMu/4WwU3tX1bcg\""},{"key":"Date","value":"Tue, 10 Jan 2023 01:23:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"adidas clothes méxico\",\n    \"createdAt\": 1673313480527\n}"}],"_postman_id":"056dd748-ba7b-4df5-bb49-3961f8c7e71a"},{"name":"create store","id":"081ad0d3-042c-4d0d-84fc-98f0bd11659b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"brazil 123","description":"<p>(Required) Name of the store</p>\n","type":"text"},{"key":"country","value":"cdmx","description":"<p>Country of the store</p>\n","type":"text"}]},"url":"{{domain}}/api/v2/store","urlObject":{"path":["api","v2","store"],"host":["{{domain}}"],"query":[{"disabled":true,"description":{"content":"<p>(Required) Name of the store</p>\n","type":"text/plain"},"key":"name","value":"sterilite mexico ecommerce"},{"disabled":true,"description":{"content":"<p>Country of the store</p>\n","type":"text/plain"},"key":"country","value":"cdmx"}],"variable":[]}},"response":[{"id":"a5d59af0-56c1-4109-940c-6abfd24392eb","name":"create store","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Mercadolibre México\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v2/store"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"ETag","value":"W/\"41-xW86PkgvZeR1Kd5+PlkutMfgjvM\""},{"key":"Date","value":"Tue, 10 Jan 2023 01:23:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 22,\n    \"name\": \"mercadolibre méxico\",\n    \"createdAt\": 1673313830052\n}"},{"id":"d1562798-d813-41ca-b5aa-728d8eeba2a7","name":"create store","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"sterilite mexico ecommerce","description":"(Required) Name of the store","type":"text"},{"key":"country","value":"cdmx","description":"Country of the store","type":"text"}]},"url":{"raw":"http://localhost:3000/api/v2/store","protocol":"http","host":["localhost"],"port":"3000","path":["api","v2","store"],"query":[{"key":"name","value":"sterilite mexico ecommerce","description":"(Required) Name of the store","disabled":true},{"key":"country","value":"cdmx","description":"Country of the store","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"111"},{"key":"ETag","value":"W/\"6f-MfCDQQXFmiVAyAigU8so9ogIOuU\""},{"key":"Date","value":"Tue, 10 Jan 2023 06:01:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"message\": \"Store with name 'sterilite mexico ecommerce' already exist\",\n    \"error\": \"Bad Request\"\n}"}],"_postman_id":"081ad0d3-042c-4d0d-84fc-98f0bd11659b"},{"name":"update store by id","id":"1cd1e857-bcb4-4977-bf58-5e20bba330c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"EXAMPLE 2\",\r\n    \"edited\": true,\r\n    \"editedByUsername\": \"frontend-angular-developer-2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{domain}}/api/v2/store/192","urlObject":{"path":["api","v2","store","192"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1cd1e857-bcb4-4977-bf58-5e20bba330c8"},{"name":"delete store by id","id":"d0c5fbde-6828-403e-a1d3-b7d87fa8aab8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{domain}}/api/v2/store/15","urlObject":{"path":["api","v2","store","15"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0c5fbde-6828-403e-a1d3-b7d87fa8aab8"},{"name":"populate with example data","id":"63f43fff-c57c-4bb4-b39d-f31a444ad90a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/api/v2/seed","urlObject":{"path":["api","v2","seed"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"a16666e2-813a-4e40-bf2e-0bbd11b27e8f","name":"populate with example data","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v2/seed"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"ETag","value":"W/\"25-bw1ZtE9zyLA5GhCOB0819GJdm3A\""},{"key":"Date","value":"Tue, 10 Jan 2023 01:23:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"ok\": true,\n    \"message\": \"seed executed\"\n}"}],"_postman_id":"63f43fff-c57c-4bb4-b39d-f31a444ad90a"},{"name":"found by name","id":"d4084b9d-0c52-4062-b7bc-0feca5176b6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{domain}}/api/v2/store/found-by-name/apple","urlObject":{"path":["api","v2","store","found-by-name","apple"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[{"id":"b4218cdf-5e2e-4377-98a4-a8ca14491986","name":"found by name","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v2/store/found-by-name/méx"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"248"},{"key":"ETag","value":"W/\"f8-dT7a9tnS1wejjcDoP8U6sjjA674\""},{"key":"Date","value":"Tue, 10 Jan 2023 02:34:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"adidas clothes méxico\",\n        \"createdAt\": 1673318032567\n    },\n    {\n        \"id\": 2,\n        \"name\": \"sterilite méxico\",\n        \"createdAt\": 1673318032567\n    },\n    {\n        \"id\": 3,\n        \"name\": \"amasón méxico\",\n        \"createdAt\": 1673318032567\n    },\n    {\n        \"id\": 4,\n        \"name\": \"apple méxico\",\n        \"createdAt\": 1673318032567\n    }\n]"},{"id":"67d67730-aa4f-4970-a3f1-8c4863144231","name":"found by name","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v2/store/found-by-name/méx2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"89"},{"key":"ETag","value":"W/\"59-EaucWgcQuzTn2EYOxgzSrL+k3c8\""},{"key":"Date","value":"Tue, 10 Jan 2023 02:39:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"Stores with term 'méx2' was not found\",\n    \"error\": \"Not Found\"\n}"}],"_postman_id":"d4084b9d-0c52-4062-b7bc-0feca5176b6f"},{"name":"create stores by bulk","id":"75743847-bc00-4f6a-af5c-1f252da18c31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"name\": \"example store by bulk 1\",\r\n        \"country\": \"germany\"\r\n    },\r\n    {\r\n        \"name\": \"example store by bulk 2\",\r\n        \"country\": \"korea\"\r\n    },\r\n    {\r\n        \"name\": \"example store by bulk 3\"\r\n    },\r\n    {\r\n        \"name\": \"example store by bulk 4\",\r\n        \"country\": \"spain\"\r\n    },\r\n    {\r\n        \"name\": \"brazil 123\",\r\n        \"country\": \"japan\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{domain}}/api/v2/store/create-stores-by-bulk","urlObject":{"path":["api","v2","store","create-stores-by-bulk"],"host":["{{domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"75743847-bc00-4f6a-af5c-1f252da18c31"}]}