{"info":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","description":"<html><head></head><body><p>The API required <code>Authorization</code> header with <code>Bearer Token</code> and <code>Content-Type application/json</code> make a sure you set headers.</p>\n<p>Axios example;</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">axios({\n  method: 'post',\n  url: 'url',\n  data: myData,\n  headers:{\n    'Content-Type': 'application/json',\n    'Authorization': '21k3j21kljdnsad....'\n  }\n});\n</code></pre>\n<p>Only <strong>Auth</strong> routes NOT required <code>Authorization</code> token but <code>Content-Type application/json</code> is required in all routes.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5796243","collectionId":"db355285-087f-49e0-a3d5-0bf1bd810dbb","publishedId":"SzYW315J","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-28T01:34:11.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"835d7d72-0898-4ef7-a405-35858e195d9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user_name\": \"alhidalgo\",\n    \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/auth/users/alhidalgo","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": \"user exists\",\n    \"data\": []\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["auth","users","alhidalgo"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"835d7d72-0898-4ef7-a405-35858e195d9f"},{"name":"register","id":"69420971-884d-4430-a685-306fbcea588d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"user_name\":\"alhidalgo\",\n\t\"password\":\"1234\",\n\t\"password2\": \"1234\",\n\t\"first_name\":\"Albert\",\n\t\"last_name\":\"Hidalgo\",\n\t\"email\":\"alhidalgodev@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/auth/register","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 201,\n    \"message\": null,\n    \"data\": {\n        \"id_user\": \"8\",\n        \"user_name\": \"alhidalgo\",\n        \"first_name\": \"Albert\",\n        \"last_name\": \"Hidalgo\",\n        \"email\": \"alhidalgodev@gmail.com\",\n        \"token\": \"Hvea8cwuiIaQN9b+-1583631820-9f0ff97d3865cf954f094c20097bd5602af70f78\",\n        \"created_at\": \"2020-03-07 20:43:40\",\n        \"update_at\": \"2020-03-07 20:43:40\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["auth","register"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"69420971-884d-4430-a685-306fbcea588d"},{"name":"account recovery","id":"48c17ab6-8621-475f-861f-e12d603f70c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"alhidalgodev@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/auth/recovery","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": \"email send\",\n    \"data\": []\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["auth","recovery"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"48c17ab6-8621-475f-861f-e12d603f70c3"},{"name":"check is email exits","id":"0be0308c-ad5b-41cf-abd8-5d910cd58fed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"alhidalgodev@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/auth/emails","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": \"email exists\",\n    \"data\": []\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["auth","emails"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0be0308c-ad5b-41cf-abd8-5d910cd58fed"},{"name":"users/{id}","id":"2b5e0381-62f8-4445-9260-63b4601573f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"http://localhost/sheiley_shop_api/users/users/8","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<p>This route use for view current user loged info, for exmaple.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": {\n        \"id_user\": \"8\",\n        \"user_name\": \"alhidalgo\",\n        \"first_name\": \"Albert\",\n        \"last_name\": \"Hidalgo\",\n        \"email\": \"alhidalgo\",\n        \"created_at\": \"2020-03-07 20:43:40\",\n        \"update_at\": \"2020-03-25 18:14:42\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["users","users","8"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b5e0381-62f8-4445-9260-63b4601573f1"}],"id":"85c3954d-1a74-460b-b598-24a21a4909ec","_postman_id":"85c3954d-1a74-460b-b598-24a21a4909ec","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}}},{"name":"Products","item":[{"name":"products","id":"3ed3c5ed-ce05-417f-8f76-6ff87c7d0285","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/products/products","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": [\n        {\n            \"id_product\": \"52\",\n            \"name\": \"tomato\",\n            \"price\": \"50\",\n            \"id_unit_measurement\": \"1\",\n            \"id_category\": \"1\",\n            \"include_tax\": \"1\",\n            \"description\": \"\",\n            \"id_user\": \"8\",\n            \"favorite\": \"0\",\n            \"brand\":\"SOME\"\n        }\n    ]\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["products","products"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ed3c5ed-ce05-417f-8f76-6ff87c7d0285"},{"name":"products","id":"3074f6a8-2f0b-4660-be03-51375a74ab75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"name\": \"tomato\",\n        \"price\": 50,\n        \"id_unit_measurement\": 1,\n        \"id_category\": 1,\n        \"include_tax\": 1,\n        \"description\": \"\",\n        \"favorite\": 0,\n        \"brand\":\"SOME\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/products/products","description":"<p>Favorite: 1 | 0\ninclude_tax: 1 | 0</p>\n<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 201,\n    \"message\": null,\n    \"data\": {\n        \"id_product\": \"52\",\n        \"name\": \"tomato\",\n        \"price\": \"50\",\n        \"id_unit_measurement\": \"1\",\n        \"id_category\": \"1\",\n        \"include_tax\": \"1\",\n        \"description\": \"\",\n        \"id_user\": \"8\",\n        \"favorite\": \"0\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["products","products"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3074f6a8-2f0b-4660-be03-51375a74ab75"},{"name":"products/{id}","id":"2d9a1749-48f9-415a-bcba-d4ce25590c96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n        \"name\": \"tomato 2\",\n        \"price\": 50,\n        \"id_unit_measurement\": 1,\n        \"id_category\": 1,\n        \"include_tax\": 1,\n        \"description\": \"\",\n        \"favorite\": 0\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/products/products/52","description":"<p>Favorite: 1 | 0\ninclude_tax: 1 | 0</p>\n<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": {\n        \"id_product\": \"52\",\n        \"name\": \"tomato 2\",\n        \"price\": \"50\",\n        \"id_unit_measurement\": \"1\",\n        \"id_category\": \"1\",\n        \"include_tax\": \"1\",\n        \"description\": \"\",\n        \"id_user\": \"8\",\n        \"favorite\": \"0\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["products","products","52"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d9a1749-48f9-415a-bcba-d4ce25590c96"},{"name":"products/{id}","id":"4fedb58c-518f-4877-a30a-bd42bb2083c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost/sheiley_shop_api/products/products/52","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": \"product deleted\",\n    \"data\": null\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["products","products","52"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4fedb58c-518f-4877-a30a-bd42bb2083c8"},{"name":"products/{id}","id":"851bea41-7b14-420c-bfed-147673cfd4e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/products/products/52","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": {\n        \"id_product\": \"52\",\n        \"name\": \"tomato 2\",\n        \"price\": \"50\",\n        \"id_unit_measurement\": \"1\",\n        \"id_category\": \"1\",\n        \"include_tax\": \"1\",\n        \"description\": \"\",\n        \"id_user\": \"8\",\n        \"favorite\": \"0\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["products","products","52"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"851bea41-7b14-420c-bfed-147673cfd4e5"},{"name":"products/brands","id":"9ac35a60-a1bd-4768-acf5-542161801f60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/products/brands","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": [\n        \"FUJI\",\n        \"US\"\n    ]\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["products","brands"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ac35a60-a1bd-4768-acf5-542161801f60"}],"id":"88c88edf-740a-4517-81e5-7ff61a96ea35","event":[{"listen":"prerequest","script":{"id":"cafeb476-11b9-40ba-88f4-90b1a88ae4b7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a9524a11-6c19-4604-932f-cb709330de4f","type":"text/javascript","exec":[""]}}],"_postman_id":"88c88edf-740a-4517-81e5-7ff61a96ea35","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}}},{"name":"Categories","item":[{"name":"categories","id":"da46807d-c189-40cc-9f39-1420887d25ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/categories/categories","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": [\n        {\n            \"id_category\": \"8\",\n            \"name\": \"SIN CATEGORIA\",\n            \"id_user\": \"8\"\n        }\n    ]\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["categories","categories"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"da46807d-c189-40cc-9f39-1420887d25ab"},{"name":"categories/{id}","id":"671210dc-4111-49d1-9adc-5dd2c3528f8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/categories/categories","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": {\n        \"id_category\": \"8\",\n        \"name\": \"SIN CATEGORIA\",\n        \"id_user\": \"8\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["categories","categories"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"671210dc-4111-49d1-9adc-5dd2c3528f8f"},{"name":"categories","id":"ba28d11a-2cf9-4ce1-9280-2b8791ad2a59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\":\"GASTABLE\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/categories/categories","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 201,\n    \"message\": \"category created\",\n    \"data\": {\n        \"id_category\": \"10\",\n        \"name\": \"GASTABLE\",\n        \"id_user\": \"8\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["categories","categories"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba28d11a-2cf9-4ce1-9280-2b8791ad2a59"},{"name":"categories/{id}","id":"4e7404df-1f77-4e3d-9af8-c8a67c423e6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost/sheiley_shop_api/categories/categories/10","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["categories","categories","10"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e7404df-1f77-4e3d-9af8-c8a67c423e6f"}],"id":"9574ab27-9021-43c9-a5e8-2db0f4411a0e","_postman_id":"9574ab27-9021-43c9-a5e8-2db0f4411a0e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}}},{"name":"Measurement units","item":[{"name":"Measurementunits","id":"3d3a9212-b4aa-488a-8635-a7702874b7b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/measurementunits/measurementunits","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": [\n        {\n            \"id_unit_measurement\": \"8\",\n            \"name\": \"UNIDAD\",\n            \"id_user\": \"8\"\n        }\n    ]\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["measurementunits","measurementunits"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d3a9212-b4aa-488a-8635-a7702874b7b8"},{"name":"measurementunits/{id}","id":"15dbd2a9-a858-44db-a3ca-3d200bc18de8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/measurementunits/measurementunits/8","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": {\n        \"id_unit_measurement\": \"8\",\n        \"name\": \"UNIDAD\",\n        \"id_user\": \"8\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["measurementunits","measurementunits","8"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"15dbd2a9-a858-44db-a3ca-3d200bc18de8"},{"name":"measurementunits","id":"4d5bae0e-f781-482f-9585-bed892c73a49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\":\"UN\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/measurementunits/measurementunits","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 201,\n    \"message\": \"measurement unit created\",\n    \"data\": {\n        \"id_unit_measurement\": \"9\",\n        \"name\": \"UN\",\n        \"id_user\": \"8\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["measurementunits","measurementunits"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d5bae0e-f781-482f-9585-bed892c73a49"},{"name":"measurementunits/{id}","id":"7f9e0d7b-d6cb-4c4d-896c-826c2f931d76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost/sheiley_shop_api/measurementunits/measurementunits/9","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": \"deleted\",\n    \"data\": null\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["measurementunits","measurementunits","9"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f9e0d7b-d6cb-4c4d-896c-826c2f931d76"}],"id":"012f14e8-a5d1-4898-b642-5b1ddb65b68b","event":[{"listen":"prerequest","script":{"id":"74cd7ea9-1e23-4d74-923e-32e050e9b41d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e84dfb5a-26a5-4d5f-bc59-63c3160ed73b","type":"text/javascript","exec":[""]}}],"_postman_id":"012f14e8-a5d1-4898-b642-5b1ddb65b68b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}}},{"name":"Taxes","item":[{"name":"taxes","id":"e8be6bc3-4512-49e4-884d-91c69144ad21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/taxes/taxes","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": {\n        \"id_tax\": \"8\",\n        \"quantity\": \"1\",\n        \"id_user\": \"8\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["taxes","taxes"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8be6bc3-4512-49e4-884d-91c69144ad21"},{"name":"taxes","id":"4388f233-243c-4129-bc11-01cd7441d237","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"quantity\":18\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/taxes/taxes","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": \"updated\",\n    \"data\": {\n        \"id_tax\": \"8\",\n        \"quantity\": \"18\",\n        \"id_user\": \"8\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["taxes","taxes"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4388f233-243c-4129-bc11-01cd7441d237"}],"id":"b1d7a0d9-9303-47f4-be5b-b2cec87809bf","_postman_id":"b1d7a0d9-9303-47f4-be5b-b2cec87809bf","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}}},{"name":"Shopping","item":[{"name":"shopping","id":"6e461459-2b59-4bdc-9a5f-5f059a19c532","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shoppingCar\": [\n        {\n            \"name\": \"ARROZ\",\n            \"price\": \"1\",\n            \"include_tax\": \"1\",\n            \"description\": \"\",\n            \"quantity\": 1,\n            \"measurementUnitName\": \"UNIDAD\",\n            \"categoryName\": \"SIN CATEGORIA\"\n        }\n    ],\n    \"nameEstablishment\": \"Super market\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost/sheiley_shop_api/shoppings/shoppings","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 201,\n    \"message\": \"created\",\n    \"data\": {\n        \"id_purchase\": \"8\",\n        \"date\": \"2020-03-15 15:12:23\",\n        \"id_user\": \"8\"\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["shoppings","shoppings"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e461459-2b59-4bdc-9a5f-5f059a19c532"},{"name":"shopping/{id}","id":"56a21a4f-2970-478c-8fc1-97a131bfa419","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/shoppings/shoppings/9","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": {\n        \"purchase_details\": [\n            {\n                \"id_purchase_detail\": \"1\",\n                \"id_purchase\": \"2\",\n                \"product_name\": \"ARROZ\",\n                \"unit_price\": \"20\",\n                \"quantity\": \"1\",\n                \"include_tax\": \"1\",\n                \"category\": \"SIN CATEGORIA\",\n                \"measurement_unit\": \"UNIDAD\"\n            },\n            {\n                \"id_purchase_detail\": \"2\",\n                \"id_purchase\": \"2\",\n                \"product_name\": \"MANZANA\",\n                \"unit_price\": \"1\",\n                \"quantity\": \"1\",\n                \"include_tax\": \"1\",\n                \"category\": \"SIN CATEGORIA\",\n                \"measurement_unit\": \"UNIDAD\"\n            }\n        ],\n        \"purchase\": {\n            \"id_purchase\": \"2\",\n            \"create_at\": \"2019-08-26 16:50:29\",\n            \"id_user\": \"1\"\n        },\n        \"establishment\": {\n            \"id_establishment_name\": \"1\",\n            \"id_purchase\": \"2\",\n            \"name\": \"super marker\"\n        },\n        \"tax\": {\n            \"id_tax\": \"8\",\n            \"quantity\": \"18\",\n            \"id_user\": \"8\"\n        }\n    }\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["shoppings","shoppings","9"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"56a21a4f-2970-478c-8fc1-97a131bfa419"},{"name":"shopping","id":"a96d524a-ce2a-465e-b7fc-5e9c549fd8d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/sheiley_shop_api/shoppings/shoppings","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": null,\n    \"data\": [\n        {\n            \"id_purchase\": \"8\",\n            \"names_establishments\": \"Super market\",\n            \"create_at\": \"2020-03-15 15:12:23\",\n            \"total\": \"1.18\"\n        }\n    ]\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["shoppings","shoppings"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"a96d524a-ce2a-465e-b7fc-5e9c549fd8d1"},{"name":"shopping/{id}","id":"09c05880-7cad-443f-88b5-04bba37e4516","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost/sheiley_shop_api/shoppings/shoppings/8","description":"<h1 id=\"response-2xx\">Response 2xx</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"errors\": null,\n    \"code\": 200,\n    \"message\": \"deleted\",\n    \"data\": null\n}\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}},"urlObject":{"path":["shoppings","shoppings","8"],"host":["http://localhost/sheiley_shop_api"],"query":[],"variable":[]}},"response":[],"_postman_id":"09c05880-7cad-443f-88b5-04bba37e4516"}],"id":"97433948-c238-46a6-99d1-d4bc9b34f4b8","_postman_id":"97433948-c238-46a6-99d1-d4bc9b34f4b8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","id":"db355285-087f-49e0-a3d5-0bf1bd810dbb","name":"Sheiley Shop","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"952f4a41-82e9-4865-8edc-4f94d6e9ca49","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"db8de214-e7a2-45f6-97df-686aedb57dbd","type":"text/javascript","exec":[""]}}],"variable":[{"key":"host","value":"http://localhost/sheiley_shop_api"}]}