{"info":{"_postman_id":"b66c1389-9ff4-4cf1-b090-3e0eee8cfd03","name":"cafe-api","description":"<html><head></head><body><p>Endpoints hasta el momento</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26918911","collectionId":"b66c1389-9ff4-4cf1-b090-3e0eee8cfd03","publishedId":"2sAYXBGKSD","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-02-11T20:48:43.000Z"},"item":[{"name":"Obtener usuarios","id":"7bdd4ffa-b72b-40b9-a88f-cf47fdc01c09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/users?desde=1&limite=15","urlObject":{"port":"3000","path":["api","users"],"host":["localhost"],"query":[{"key":"desde","value":"1"},{"key":"limite","value":"15"}],"variable":[]}},"response":[],"_postman_id":"7bdd4ffa-b72b-40b9-a88f-cf47fdc01c09"},{"name":"Crear usuario","id":"66424284-0a91-40f7-a212-c9ee4d665240","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"jhoni21\",\r\n    \"email\": \"jhoni21@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"role\":\"ADMIN_ROLE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/users","urlObject":{"port":"3000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"66424284-0a91-40f7-a212-c9ee4d665240"},{"name":"Actualizar usuario","id":"b12026b0-d4c9-490c-ab1c-80f7f7ac54af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"jhoni\",\r\n    \"role\": \"USER_ROLE\",\r\n    \"status\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/users/67a525f053f457c00ce5bfa2","urlObject":{"port":"3000","path":["api","users","67a525f053f457c00ce5bfa2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b12026b0-d4c9-490c-ab1c-80f7f7ac54af"},{"name":"Eliminar usuario","id":"bc637479-261c-4995-9835-71387a721f86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3Mzg5NjY0MTYsImV4cCI6MTczODk4MDgxNn0.KTN0d0O5I_Yg8hOMFF5TkccwLK-sv1Ws65koNpaavP0","type":"text"}],"url":"localhost:3000/api/users/67a5378aa77a764643d5c4c8","urlObject":{"port":"3000","path":["api","users","67a5378aa77a764643d5c4c8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc637479-261c-4995-9835-71387a721f86"},{"name":"Login usuarios","id":"122119ec-4fc2-48d9-8d03-76f21cdf642a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"jhoni20@gmail.com\",\r\n    \"password\":\"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/login","urlObject":{"port":"3000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"122119ec-4fc2-48d9-8d03-76f21cdf642a"},{"name":"Google SignIn","id":"2ed7b7a3-c183-40ce-a740-4d5d336ed1af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id_token\":\"abc123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/google","urlObject":{"port":"3000","path":["api","auth","google"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ed7b7a3-c183-40ce-a740-4d5d336ed1af"},{"name":"renovar JWT","id":"aec70852-685e-4098-9b38-f5d875687866","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3NDAwNzQxNzEsImV4cCI6MTc0MDA4ODU3MX0.ef0xOsg6gmHxpjau_DTjo7kwP_MMFIt1mN4q2rmV590","type":"text"}],"url":"localhost:3000/api/auth","urlObject":{"port":"3000","path":["api","auth"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"aec70852-685e-4098-9b38-f5d875687866"},{"name":"Obtener Categorias","id":"9b8d2591-d3b9-425f-89e0-04b447d841b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/categories?desde=0&limite=5","urlObject":{"port":"3000","path":["api","categories"],"host":["localhost"],"query":[{"key":"desde","value":"0"},{"key":"limite","value":"5"}],"variable":[]}},"response":[],"_postman_id":"9b8d2591-d3b9-425f-89e0-04b447d841b8"},{"name":"Obtener Categoria Por ID","id":"27b2c9ab-fe4a-4b6c-9805-46fa00f4c242","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/categories/67abca4a2db4a42e1da51684","urlObject":{"port":"3000","path":["api","categories","67abca4a2db4a42e1da51684"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"27b2c9ab-fe4a-4b6c-9805-46fa00f4c242"},{"name":"Crear Categoria","id":"c61a03dc-22e4-4109-9749-51a4c368733e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3MzkzMTAzMDksImV4cCI6MTczOTMyNDcwOX0.o4jkXM1DMlqHqHkCz5EvYM59556mjmm1u4UUosUSGWs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"panes\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/categories","urlObject":{"port":"3000","path":["api","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c61a03dc-22e4-4109-9749-51a4c368733e"},{"name":"Actualizar Categoria","id":"0a3f835d-32a6-4c09-8063-050e3f09f1f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3MzkzMTAzMDksImV4cCI6MTczOTMyNDcwOX0.o4jkXM1DMlqHqHkCz5EvYM59556mjmm1u4UUosUSGWs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"panes\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/categories/67abca4a2db4a42e1da51684","urlObject":{"port":"3000","path":["api","categories","67abca4a2db4a42e1da51684"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a3f835d-32a6-4c09-8063-050e3f09f1f6"},{"name":"Eliminar Categoria","id":"435fd783-1116-4643-81b9-bbc617c9f906","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3MzkzMTAzMDksImV4cCI6MTczOTMyNDcwOX0.o4jkXM1DMlqHqHkCz5EvYM59556mjmm1u4UUosUSGWs","type":"text"}],"url":"localhost:3000/api/categories/67abca4a2db4a42e1da51684","urlObject":{"port":"3000","path":["api","categories","67abca4a2db4a42e1da51684"],"host":["localhost"],"query":[{"disabled":true,"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3MzkzMTAzMDksImV4cCI6MTczOTMyNDcwOX0.o4jkXM1DMlqHqHkCz5EvYM59556mjmm1u4UUosUSGWs"}],"variable":[]}},"response":[],"_postman_id":"435fd783-1116-4643-81b9-bbc617c9f906"},{"name":"Obtener Productos","id":"ab3f0e62-fc3c-4300-9c2c-4577a9546907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/products?desde=1&limite=15","urlObject":{"port":"3000","path":["api","products"],"host":["localhost"],"query":[{"key":"desde","value":"1"},{"key":"limite","value":"15"}],"variable":[]}},"response":[],"_postman_id":"ab3f0e62-fc3c-4300-9c2c-4577a9546907"},{"name":"Obtener Producto","id":"496d4dc1-55cc-4e61-a6b0-be8f2004de80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/products/67ac026852ff5c199feb80ec","urlObject":{"port":"3000","path":["api","products","67ac026852ff5c199feb80ec"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"496d4dc1-55cc-4e61-a6b0-be8f2004de80"},{"name":"Crear Producto","id":"cc09bc6e-99bc-4f51-8be2-fab4efc7ca3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3MzkzNzEyMTQsImV4cCI6MTczOTM4NTYxNH0.2iMCPBbar0B9aNkuw1nK2IS-6gbGyqOAlCMIGeYTtv0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"maria\",\r\n    \"category\":\"67abc785caa63054561d56e8\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/products","urlObject":{"port":"3000","path":["api","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc09bc6e-99bc-4f51-8be2-fab4efc7ca3d"},{"name":"Actualizar Producto","id":"38e37c2c-f776-4204-863c-64b8c5e8f408","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3MzkzMjUwNzMsImV4cCI6MTczOTMzOTQ3M30.-L1Ee4vluuebsNcP_NjMfSzMUHP1_UoG3BMU1MnEPyY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"galletas con chispas\",\r\n    \"price\": 3000,\r\n    \"stock\": 5\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/products/67ac026852ff5c199feb80ec","urlObject":{"port":"3000","path":["api","products","67ac026852ff5c199feb80ec"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"38e37c2c-f776-4204-863c-64b8c5e8f408"},{"name":"Borrar Producto","id":"7db62218-20e5-4c05-a8bd-beaa0741241e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3MzkzMjUwNzMsImV4cCI6MTczOTMzOTQ3M30.-L1Ee4vluuebsNcP_NjMfSzMUHP1_UoG3BMU1MnEPyY","type":"text"}],"url":"localhost:3000/api/products/67ac026852ff5c199feb80ec","urlObject":{"port":"3000","path":["api","products","67ac026852ff5c199feb80ec"],"host":["localhost"],"query":[{"disabled":true,"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2N2E2ODU3YmExMmU4ODBmMmY3YzViNWYiLCJpYXQiOjE3MzkzMjUwNzMsImV4cCI6MTczOTMzOTQ3M30.-L1Ee4vluuebsNcP_NjMfSzMUHP1_UoG3BMU1MnEPyY"}],"variable":[]}},"response":[],"_postman_id":"7db62218-20e5-4c05-a8bd-beaa0741241e"},{"name":"Buscar","id":"86ebf2d3-16df-4dda-bcc2-5b36b0420abd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/search/products/galle","urlObject":{"port":"3000","path":["api","search","products","galle"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"86ebf2d3-16df-4dda-bcc2-5b36b0420abd"},{"name":"Subir Archivo","id":"1d37b8b4-2990-4e9d-b2c6-eaaac6f4b07d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"archivo","type":"file","uuid":"db696cb8-2921-4a8f-b32d-2cbef59b488d","src":"postman-cloud:///1efe9627-778f-4fa0-8c44-88a7046f8ff0"}]},"url":"localhost:3000/api/uploads","urlObject":{"port":"3000","path":["api","uploads"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1d37b8b4-2990-4e9d-b2c6-eaaac6f4b07d"},{"name":"Actualizar imagen de usuario","id":"6a14bcc7-bf6c-4bb1-bcc4-52d362c20ee2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"archivo","type":"file","uuid":"7c708c71-02df-453d-9d21-96e379bace58","src":"postman-cloud:///1efe98be-57d6-4120-b294-67bcfe0ea863"}]},"url":"localhost:3000/api/uploads/users/67a5372ba77a764643d5c4af","urlObject":{"port":"3000","path":["api","uploads","users","67a5372ba77a764643d5c4af"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a14bcc7-bf6c-4bb1-bcc4-52d362c20ee2"},{"name":"Actualizar imagen de producto","id":"86799429-852c-4f6b-b200-2ec22fc26d55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"archivo","type":"file","uuid":"1084473e-1d89-4bd2-808c-a50209b23dd5","src":"/C:/Users/jhoni/OneDrive/Imágenes/Capturas de pantalla/Captura de pantalla 2025-02-06 221549.png"}]},"url":"localhost:3000/api/uploads/products/67acb2ea1c194f5028901da8","urlObject":{"port":"3000","path":["api","uploads","products","67acb2ea1c194f5028901da8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"86799429-852c-4f6b-b200-2ec22fc26d55"},{"name":"Obtener imagen","id":"c78512be-3443-4621-b7d1-ba75a77889c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/uploads/products/67ac0d06fac87417cae78393","urlObject":{"protocol":"http","port":"3000","path":["api","uploads","products","67ac0d06fac87417cae78393"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c78512be-3443-4621-b7d1-ba75a77889c0"}]}