{"info":{"_postman_id":"19b15f1a-c6a4-404c-9370-ce75fff3b9ec","name":"Proyecto Hexagonal","description":"<html><head></head><body><p><strong>Objetivo del Proyecto:</strong> Desarrollar una aplicación en Laravel utilizando arquitectura hexagonal que permita la gestión de productos y categorías, manejo de una lista de precios, y que incorpore un sistema de autenticación.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26172346","collectionId":"19b15f1a-c6a4-404c-9370-ce75fff3b9ec","publishedId":"2sA3Qwap8T","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-06T17:55:52.000Z"},"item":[{"name":"Auth","item":[{"name":"Register","id":"75c2a311-7842-4b56-8d46-eea41dc065e5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Jorge\",\r\n    \"email\": \"test03@gmail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/register","urlObject":{"path":["api","register"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"90ee8f90-6df7-44cf-9cff-d8167790a660","name":"Register","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Jorge\",\r\n    \"email\": \"test03@gmail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 31 May 2024 21:20:33 GMT"},{"key":"Date","value":"Fri, 31 May 2024 21:20:33 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Jorge\",\n    \"email\": \"test03@gmail.com\",\n    \"updated_at\": \"2024-05-31T21:20:33.000000Z\",\n    \"created_at\": \"2024-05-31T21:20:33.000000Z\",\n    \"id\": 3\n}"}],"_postman_id":"75c2a311-7842-4b56-8d46-eea41dc065e5"},{"name":"Login","id":"f64a8160-e8fe-4361-88d4-06075d9ec072","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"test02@gmail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/login","urlObject":{"path":["api","login"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"9ea00693-d7a0-49c1-8688-4460d40bfb78","name":"Login","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"test02@gmail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 31 May 2024 21:20:15 GMT"},{"key":"Date","value":"Fri, 31 May 2024 21:20:15 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"id\": 2,\n        \"name\": \"Jorge\",\n        \"email\": \"test02@gmail.com\",\n        \"email_verified_at\": null,\n        \"created_at\": \"2024-05-18T00:44:19.000000Z\",\n        \"updated_at\": \"2024-05-18T00:44:19.000000Z\"\n    },\n    \"token\": \"3|eVLJkVTFK0fkubWXgzrFjC9GG6fwNA6U7CpQRvvr\"\n}"}],"_postman_id":"f64a8160-e8fe-4361-88d4-06075d9ec072"}],"id":"c7239bb0-00e7-4973-a6ef-71798966eae3","description":"<p>Autenticación para controlar el acceso a las funcionalidades de gestión de productos y categorías.</p>\n","_postman_id":"c7239bb0-00e7-4973-a6ef-71798966eae3"},{"name":"Categories","item":[{"name":"Create Category","id":"9660f30e-7fa6-4ee0-95ed-8de2ee3560cd","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Categoria 2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/categories","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parametro</th>\n<th>Requerido</th>\n<th>Tipo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>Si</td>\n<td>String</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","categories"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"9fc16321-ed34-4d58-a041-edc673b44a74","name":"Create Category","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Categoria 1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/categories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 19 May 2024 22:42:07 GMT"},{"key":"Date","value":"Sun, 19 May 2024 22:42:07 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Categoria 1\",\n    \"updated_at\": \"2024-05-19T22:42:07.000000Z\",\n    \"created_at\": \"2024-05-19T22:42:07.000000Z\",\n    \"id\": 1\n}"}],"_postman_id":"9660f30e-7fa6-4ee0-95ed-8de2ee3560cd"},{"name":"Update Category","id":"52576748-5c16-4c20-b058-dbe37561baa5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Categoria 1 U\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/categories/3","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parametro</th>\n<th>Requerido</th>\n<th>Tipo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>Si</td>\n<td>String</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","categories","3"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"0a476980-8b81-4fa5-b49e-4fc26b639eab","name":"Update Category","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Categoria 1 U\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/categories/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 31 May 2024 21:18:39 GMT"},{"key":"Date","value":"Fri, 31 May 2024 21:18:39 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category update successfully.\"\n}"}],"_postman_id":"52576748-5c16-4c20-b058-dbe37561baa5"},{"name":"Delete Category","id":"20c018dd-2335-4f12-a712-ab8afde8343f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/categories/2","description":"<p>Eliminar una categoria</p>\n","urlObject":{"path":["api","categories","2"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"20c018dd-2335-4f12-a712-ab8afde8343f"}],"id":"541360b3-98b1-49ca-8f99-a9e0b1761d25","description":"<p>Gestión de categorias del sistema.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Requerido</th>\n<th>Tipo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Bearer Token</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"541360b3-98b1-49ca-8f99-a9e0b1761d25"},{"name":"Products","item":[{"name":"Create Product","id":"1b375f89-6625-4b9f-95dd-39704b656636","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Producto 1\",\r\n    \"price\": 80000,\r\n    \"stock\": 5,\r\n    \"categories\": [3,4]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/products","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parametro</th>\n<th>Requerido</th>\n<th>Tipo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>Si</td>\n<td>String</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Si</td>\n<td>number</td>\n</tr>\n<tr>\n<td>stock</td>\n<td>Si</td>\n<td>number</td>\n</tr>\n<tr>\n<td>categories</td>\n<td>No</td>\n<td>array[number]</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","products"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"b85332e7-97b2-4235-824e-39e641fa1b8b","name":"Create Product Resp","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Producto 1\",\r\n    \"price\": 8000,\r\n    \"stock\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 19 May 2024 23:40:58 GMT"},{"key":"Date","value":"Sun, 19 May 2024 23:40:58 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Producto 1\",\n    \"stock\": 10,\n    \"price\": 8000,\n    \"updated_at\": \"2024-05-19T23:40:58.000000Z\",\n    \"created_at\": \"2024-05-19T23:40:58.000000Z\",\n    \"id\": 1\n}"}],"_postman_id":"1b375f89-6625-4b9f-95dd-39704b656636"},{"name":"Update Product","id":"80423d67-ccf6-4657-93f0-48a211ce9640","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Producto 1\",\r\n    \"price\": 8000,\r\n    \"stock\": 5,\r\n    \"categories\": [3,4]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/products/4","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parametro</th>\n<th>Requerido</th>\n<th>Tipo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>Si</td>\n<td>String</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Si</td>\n<td>number</td>\n</tr>\n<tr>\n<td>stock</td>\n<td>Si</td>\n<td>number</td>\n</tr>\n<tr>\n<td>categories</td>\n<td>No</td>\n<td>array[number]</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","products","4"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"ffd39919-eeab-47ef-8b2a-5aa2fb00d155","name":"Update Product","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Producto 1\",\r\n    \"price\": 8000,\r\n    \"stock\": 5,\r\n    \"categories\": [3,4]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/products/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 31 May 2024 21:19:42 GMT"},{"key":"Date","value":"Fri, 31 May 2024 21:19:42 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"80423d67-ccf6-4657-93f0-48a211ce9640"},{"name":"Delete Product","id":"63b39aea-7431-447f-a94d-4684cc35ba8a","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/products/1","description":"<p>Eliminar un producto</p>\n","urlObject":{"path":["api","products","1"],"host":["localhost:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"63b39aea-7431-447f-a94d-4684cc35ba8a"},{"name":"Price List Products","id":"ff042fd8-246b-4d73-9c53-f06bd0274e78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8000/api/price-list?category_id=3&price=8000","description":"<p>Obtener el listado de los precios de los productos disponibles.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parametro</th>\n<th>Requerido</th>\n<th>Tipo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>category_id</td>\n<td>No</td>\n<td>number</td>\n</tr>\n<tr>\n<td>price</td>\n<td>No</td>\n<td>number</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","price-list"],"host":["localhost:8000"],"query":[{"description":{"content":"<p>(Opcional) ID categoria de los productos</p>\n","type":"text/plain"},"key":"category_id","value":"3"},{"description":{"content":"<p>(Opcional) Valor maximo productos</p>\n","type":"text/plain"},"key":"price","value":"8000"}],"variable":[]}},"response":[{"id":"85883304-e0cb-41c8-86f7-2c6369deb11c","name":"Price List Products","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8000/api/price-list?category_id=3&price=8000","host":["localhost:8000"],"path":["api","price-list"],"query":[{"key":"category_id","value":"3","description":"ID categoria de los prodcutos"},{"key":"price","value":"8000","description":"Valor maximo productos"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Fri, 31 May 2024 21:36:25 GMT"},{"key":"Date","value":"Fri, 31 May 2024 21:36:25 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.3.28"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"name\": \"Producto 1\",\n        \"price\": \"8000.00\",\n        \"stock\": 5,\n        \"created_at\": \"2024-05-31T21:11:39.000000Z\",\n        \"updated_at\": \"2024-05-31T21:19:42.000000Z\"\n    }\n]"}],"_postman_id":"ff042fd8-246b-4d73-9c53-f06bd0274e78"}],"id":"1473ff94-ccf8-42b7-803e-92ebedc806a0","description":"<p>Gestión de productos del sistema.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Requerido</th>\n<th>Tipo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Bearer Token</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"1473ff94-ccf8-42b7-803e-92ebedc806a0"}],"event":[{"listen":"prerequest","script":{"id":"bdfbb357-75a8-44b5-87df-c34e2c06f4af","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"0d384003-54c4-43eb-8185-332c8265b99b","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"url","value":"localhost:8000","type":"string"}]}