{"info":{"_postman_id":"22f28947-b5c7-4eef-81eb-caea4710d461","name":"Fake Store API","description":"<html><head></head><body><p>La API de Fake Store puede usarse con cualquier tipo de proyecto que necesite productos, usuarios, categorías, autenticación y usuarios en formato JSON. Puedes utilizar esta API para prototipar comercio electrónico y aprender sobre cómo conectar con una API siguiendo las mejores prácticas.</p>\n<p>Esta API incluye características como</p>\n<ul>\n<li>✅ <strong>Todas las operaciones CRUD</strong></li>\n<li>✅ <strong>API REST</strong></li>\n<li>✅ <strong>Paginación</strong></li>\n<li>✅ <strong>Autenticación con JWT</strong></li>\n<li>✅ <strong>Filtrar productos por categoría, título y rango de precios</strong></li>\n<li>✅ <strong>Crear usuarios y comprobar si ya existen</strong></li>\n<li>✅ <strong>Archivos de Postman e Insomnia</strong></li>\n<li>✅ <strong>Imágenes de productos generadas por IA</strong></li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"30572667","collectionId":"22f28947-b5c7-4eef-81eb-caea4710d461","publishedId":"2s9YsDkEkh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-30T20:36:20.000Z"},"item":[{"name":"Product","item":[{"name":"Crear producto","id":"f16b382a-a550-4b70-9452-4c27a5b4bee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/create","urlObject":{"path":["api","products","create"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"f16b382a-a550-4b70-9452-4c27a5b4bee1"},{"name":"Listar productos","id":"56d6a260-6f6b-4d74-a987-ead4defb8123","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/products/all","urlObject":{"path":["api","products","all"],"host":["http://localhost:8080"],"query":[{"disabled":true,"key":"size","value":"2"},{"disabled":true,"key":"name","value":"Juego"},{"disabled":true,"key":"priceMin","value":"500"},{"disabled":true,"key":"priceMax","value":"2000"},{"disabled":true,"key":"categoryId","value":"1"},{"disabled":true,"key":"page","value":"1"},{"disabled":true,"key":"price","value":"1999.99"}],"variable":[]}},"response":[],"_postman_id":"56d6a260-6f6b-4d74-a987-ead4defb8123"},{"name":"Eliminar producto","id":"e746e136-d5a6-4bff-b29b-43d361d2e15c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/products/delete/3","urlObject":{"path":["api","products","delete","3"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"e746e136-d5a6-4bff-b29b-43d361d2e15c"},{"name":"Actualizar producto","id":"ae2fc9b7-b1ba-47a9-80ed-ddbedad8da7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Altavoz Bluetooth Portátil\",\r\n  \"description\": \"Altavoz Bluetooth compacto y portátil con excelente calidad de sonido y resistencia al agua, ideal para llevarlo a cualquier parte.\",\r\n  \"price\": 99.99,\r\n  \"stockQuantity\": 75,\r\n  \"categoryId\": 10,\r\n  \"imageUrl\": \"https://i.ibb.co/LPYY3vD/Altavoz-Bluetooth-Port-til.png\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/products/update/50","urlObject":{"path":["api","products","update","50"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae2fc9b7-b1ba-47a9-80ed-ddbedad8da7c"},{"name":"Buscar por ID","id":"4f0b3e98-5f6e-4861-9f7a-bc1ddb024d49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/products/6","urlObject":{"path":["api","products","6"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f0b3e98-5f6e-4861-9f7a-bc1ddb024d49"}],"id":"792d3973-9281-43fc-9f42-5cc57cbce85d","event":[{"listen":"prerequest","script":{"id":"c8a297d9-1265-49dd-9f24-2aaa0d9a18c7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"36255bf3-24e4-419d-abb4-5a2cc26ab23d","type":"text/javascript","exec":[""]}}],"_postman_id":"792d3973-9281-43fc-9f42-5cc57cbce85d","description":""},{"name":"Categorias","item":[{"name":"Crear categoria","id":"aaf24b59-7c35-4861-ac2f-1cd523707169","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Tecnología y Accesorios\",\r\n  \"description\": \"Productos innovadores y accesorios en el campo de la tecnología, incluyendo gadgets, dispositivos de audio y video, y periféricos de computadora.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/categories/create","urlObject":{"path":["api","categories","create"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"aaf24b59-7c35-4861-ac2f-1cd523707169"},{"name":"Listar categorias","id":"ce43486c-70d3-436e-b8ca-cdc3976c7088","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/categories/all","urlObject":{"path":["api","categories","all"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce43486c-70d3-436e-b8ca-cdc3976c7088"},{"name":"Actualizar categoría","id":"1de42b49-5483-44c3-b624-9300308ea4fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Electrónica\",\r\n    \"description\": \"Productos relacionados con dispositivos electrónicos, como smartphones, televisores, computadoras y más.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/categories/update/1","urlObject":{"path":["api","categories","update","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"1de42b49-5483-44c3-b624-9300308ea4fa"}],"id":"bf515afa-5e6e-4618-a7fa-bc207ca386a2","_postman_id":"bf515afa-5e6e-4618-a7fa-bc207ca386a2","description":""},{"name":"Usuario","item":[{"name":"Crear usuario","id":"e41040fa-7130-446a-b380-f93b14bb7821","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"Tomas\",\r\n  \"password\": \"tomas\",\r\n  \"email\": \"tomas@gmail.com\",\r\n  \"avatar\": \"https://i.imgur.com/yhW6Yw1.jpg\",\r\n  \"role\": \"CUSTOMER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/create","urlObject":{"path":["api","users","create"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"e41040fa-7130-446a-b380-f93b14bb7821"},{"name":"Listar usuarios","id":"b8331b33-e5ba-4747-b019-f4c1a6100d48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/users/all?page=0&size=15","urlObject":{"path":["api","users","all"],"host":["http://localhost:8080"],"query":[{"key":"page","value":"0"},{"key":"size","value":"15"}],"variable":[]}},"response":[],"_postman_id":"b8331b33-e5ba-4747-b019-f4c1a6100d48"},{"name":"Buscar por ID","id":"d084fbfb-bfc5-4c59-930f-948b23e1c438","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"Nicolasa\",\r\n  \"password\": \"123456\",\r\n  \"email\": \"nico@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/4","urlObject":{"path":["api","users","4"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"d084fbfb-bfc5-4c59-930f-948b23e1c438"},{"name":"Eliminar usuario","id":"93ebf3c9-70bc-4e79-9cd1-3bc5e679d431","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"Nicolas\",\r\n  \"email\": \"nico@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/delete/11","urlObject":{"path":["api","users","delete","11"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"93ebf3c9-70bc-4e79-9cd1-3bc5e679d431"},{"name":"Actualizar usuario","id":"8044694f-bdfa-4136-91d1-b5b39bdba7bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"Faustino\",\r\n  \"email\": \"faustino@gmail.com\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/update/6","urlObject":{"path":["api","users","update","6"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"8044694f-bdfa-4136-91d1-b5b39bdba7bb"},{"name":"Verificar existencia","id":"ccda9d82-be41-4833-bf8d-767852147e30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"juan@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/is-available","urlObject":{"path":["api","users","is-available"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccda9d82-be41-4833-bf8d-767852147e30"}],"id":"c6e49951-6831-483d-be1c-034eef7198bf","_postman_id":"c6e49951-6831-483d-be1c-034eef7198bf","description":""},{"name":"Order","item":[{"name":"Crear pedido","id":"d15e78d7-5175-4a2d-8fa3-1010ed1339f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"orderDetails\": [\r\n        {\r\n            \"id\": 2,\r\n            \"quantity\": 10\r\n        },\r\n        {\r\n            \"id\": 4,\r\n            \"quantity\": 20\r\n\r\n        }\r\n    ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/orders/create","urlObject":{"path":["api","orders","create"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"d15e78d7-5175-4a2d-8fa3-1010ed1339f3"},{"name":"Listar pedidos","id":"2e46078c-9cdc-4cec-b202-84bb4282961d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/orders/all","urlObject":{"path":["api","orders","all"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e46078c-9cdc-4cec-b202-84bb4282961d"},{"name":"Cancelar pedido","id":"6f814e11-b9c9-464b-82fa-20b4caf8adc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:8080/api/orders/cancel/5","urlObject":{"path":["api","orders","cancel","5"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f814e11-b9c9-464b-82fa-20b4caf8adc8"},{"name":"Buscar por ID","id":"5c4b56f2-c608-4dee-8ab5-4658aea8d04d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/orders/1","urlObject":{"path":["api","orders","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c4b56f2-c608-4dee-8ab5-4658aea8d04d"},{"name":"Retomar Pedido","id":"b086b7ca-3a82-4b5e-8d07-83c55c8333c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:8080/api/orders/retake/6","urlObject":{"path":["api","orders","retake","6"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"b086b7ca-3a82-4b5e-8d07-83c55c8333c3"},{"name":"Completar Pedido","id":"050e3618-483d-4086-8643-ed863a31a584","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"http://localhost:8080/api/orders/complete/6","urlObject":{"path":["api","orders","complete","6"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"050e3618-483d-4086-8643-ed863a31a584"}],"id":"ff908c4d-e715-4d33-964f-6b86e2e4f749","_postman_id":"ff908c4d-e715-4d33-964f-6b86e2e4f749","description":""},{"name":"Order Details","item":[{"name":"Listar Detalles del pedido","id":"c60ea657-7250-4a14-afa2-85af0ba3c701","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/order-details/all/1","urlObject":{"path":["api","order-details","all","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"c60ea657-7250-4a14-afa2-85af0ba3c701"},{"name":"Actualizar Detalles del pedido","id":"94ae5129-7748-482d-8973-580f9dda1676","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"productId\": 2,\r\n    \"quantity\": 15\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/order-details/1","urlObject":{"path":["api","order-details","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"94ae5129-7748-482d-8973-580f9dda1676"}],"id":"cb01ae9b-e5d7-41f3-9e7a-327082a269aa","_postman_id":"cb01ae9b-e5d7-41f3-9e7a-327082a269aa","description":""},{"name":"Login","id":"79d849b8-5391-4bb9-9413-a32aac145a3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"juan@gmail.com\",\r\n    \"password\": \"Juan1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/login","urlObject":{"path":["login"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"79d849b8-5391-4bb9-9413-a32aac145a3c"}],"event":[{"listen":"prerequest","script":{"id":"c7fbb0ac-be32-49ab-bd33-5a0b51bd802b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8a1e3be2-2a54-43d4-a9db-a264ffd3fe4d","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"http://localhost:8080"}]}