{"info":{"_postman_id":"fdd2682a-90d6-47df-90fa-aa58e1af1879","name":"JASAILIVE","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"30170884","collectionId":"fdd2682a-90d6-47df-90fa-aa58e1af1879","publishedId":"2sA3e49od3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-11T19:27:17.000Z"},"item":[{"name":"Usuario","item":[{"name":"Crear Usuario","id":"98d01036-6a97-4ee0-a7ec-edf4ed2eb673","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"nombre\": \"John \",\n  \"correo\": \"john1@example.com\",\n  \"contrasena\": \"password123\",\n  \"telefono\": \"9612734563\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://54.81.112.25:3000/api/usuarios","description":"<p><strong>Descripción</strong>: Crea un nuevo usuario.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","usuarios"],"host":["54","81","112","25"],"query":[],"variable":[]}},"response":[],"_postman_id":"98d01036-6a97-4ee0-a7ec-edf4ed2eb673"},{"name":"Obtener Todos usuarios","id":"d16f3e9d-e2ff-4477-b653-843fe76a3ee5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NjhmMDcyNDg2ZjU1OTU2OWM5MDEwYzUiLCJpYXQiOjE3MjA2NDk1MDgsImV4cCI6MTcyMDY1MzEwOH0.RQ7OQO64nwcgBEgMprsDEDvDPT6qkOLz9rJrP6n82OY","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://67.202.4.38:3000/api/usuarios","description":"<p>Obtiene una lista de todos los usuarios. Requiere autenticación.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","usuarios"],"host":["67","202","4","38"],"query":[],"variable":[]}},"response":[],"_postman_id":"d16f3e9d-e2ff-4477-b653-843fe76a3ee5"},{"name":"Obtener Usuario Por ID","id":"59758b92-d293-4c40-bbbf-87d454a353c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2Njk4ODM0NmQ3NDI1NWUxNzFkNGM5MTYiLCJpYXQiOjE3MjEyNzExMTAsImV4cCI6MTcyMTI3NDcxMH0.9jedVC7zZTdbTWsQAW7TTCmuimRWw8T9Yem0lINbeWA","type":"text"}],"url":"http://67.202.4.38:3000/api/usuarios/66988346d74255e171d4c916","description":"<ul>\n<li>Obtiene un usuario por su ID. Requiere autenticación.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["api","usuarios","66988346d74255e171d4c916"],"host":["67","202","4","38"],"query":[],"variable":[]}},"response":[],"_postman_id":"59758b92-d293-4c40-bbbf-87d454a353c1"},{"name":"Actualizar Datos por ID","id":"a905f08c-32d7-4650-9173-d5dc26feaee8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2Njk4OGQ1M2Q3NDI1NWUxNzFkNGM5NWMiLCJpYXQiOjE3MjEyNzM2ODMsImV4cCI6MTcyMTI3NzI4M30.vMhCQgc6SJtN07LX3ZzUnlY4hGhknTYUsdd5fw2AB4s","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"nombre\": \"David\",\n    \"correo\": \"jesuruga@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://67.202.4.38:3000/api/usuarios/66988d53d74255e171d4c95c","description":"<p>Actualiza un usuario por su ID. Requiere autenticación</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","usuarios","66988d53d74255e171d4c95c"],"host":["67","202","4","38"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"a905f08c-32d7-4650-9173-d5dc26feaee8"},{"name":"Borrar Usuario Por ID","id":"4dd9ed2f-751b-45a9-a316-187b21bbe0fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NjhmMDcyNDg2ZjU1OTU2OWM5MDEwYzUiLCJpYXQiOjE3MjA2NDk1MDgsImV4cCI6MTcyMDY1MzEwOH0.RQ7OQO64nwcgBEgMprsDEDvDPT6qkOLz9rJrP6n82OY","type":"text"}],"url":"http://67.202.4.38:3000/api/usuarios/6696c9aefe5bb5c0cd3d6d45","description":"<p>Elimina un usuario por su ID. Requiere autenticación.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","usuarios","6696c9aefe5bb5c0cd3d6d45"],"host":["67","202","4","38"],"query":[],"variable":[]}},"response":[],"_postman_id":"4dd9ed2f-751b-45a9-a316-187b21bbe0fa"},{"name":"Login de usuario","id":"c994bb0b-a84b-4fd4-bd20-a9d412c06b18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"correo\": \"jesuruga@gmail.com\",\n    \"contraseña\": \"example\"\n}","options":{"raw":{"language":"json"}}},"url":"http://67.202.4.38:3000/api/usuarios/login","description":"<p>Inicia sesión y devuelve un token JWT.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","usuarios","login"],"host":["67","202","4","38"],"query":[],"variable":[]}},"response":[],"_postman_id":"c994bb0b-a84b-4fd4-bd20-a9d412c06b18"}],"id":"dbb9a87f-aa3f-46b6-bb07-fb7e99a5cfed","description":"<p>Esta API está diseñada para manejar usuarios y eventos, permitiendo operaciones CRUD (Crear, Leer, Actualizar y Eliminar) para ambas entidades. La API utiliza autenticación JWT para proteger las rutas que requieren autorización.</p>\n<p>Para interactuar con la API, primero crea o inicia sesión con un usuario para obtener un token JWT. Usa este token en el encabezado <code>Authorization</code> para acceder a las rutas protegidas. La API proporciona rutas para crear, leer, actualizar y eliminar tanto usuarios como eventos.</p>\n","_postman_id":"dbb9a87f-aa3f-46b6-bb07-fb7e99a5cfed"},{"name":"Eventos","item":[{"name":"Crear Evento","id":"22f20c15-6df1-4311-b28e-b01c33aa093a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n     \"nombre\": \"Brincos Dieras\",\n    \"descripcion\": \"Llega por primera vez a SUCHIAPA\",\n    \"fecha\": \"2024-09-15T20:00:00.000+00:00\",\n    \"genero\": \"Entretenimiento\",\n    \"imagen\": \"https://web.opendrive.com/api/v1/download/file.json/MjdfNTUzMDQwNDVfRj...\",\n    \"lugar\": \"Suchiapa\",\n    \"general\": 500,\n    \"preferente\": 2000,\n    \"vip\": 3500\n}","options":{"raw":{"language":"json"}}},"url":"http://67.202.4.38:3000/api/eventos","description":"<p>Crear un nuevo Evento</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","eventos"],"host":["67","202","4","38"],"query":[],"variable":[]}},"response":[],"_postman_id":"22f20c15-6df1-4311-b28e-b01c33aa093a"},{"name":"Obtener todos los eventos","id":"f5b49725-8af7-4e22-9329-7aae3167160a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://98.83.195.141:3029/api/eventos","description":"<p>Obtiene una lista de todos los eventos.</p>\n","urlObject":{"protocol":"http","port":"3029","path":["api","eventos"],"host":["98","83","195","141"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5b49725-8af7-4e22-9329-7aae3167160a"},{"name":"Obtener evento por ID","id":"2d560b51-93db-451c-beb9-4550ad3439da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://67.202.4.38:3000/api/eventos/668f0cdd86f559569c9010d1","description":"<p>Obtener los eventos por ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","eventos","668f0cdd86f559569c9010d1"],"host":["67","202","4","38"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d560b51-93db-451c-beb9-4550ad3439da"}],"id":"6d2df201-67ae-4f9b-ba31-a59c75844d1b","_postman_id":"6d2df201-67ae-4f9b-ba31-a59c75844d1b","description":""},{"name":"Carrito","item":[{"name":"Agregar al carrito","id":"3b382754-8eb9-4218-8d5a-338138f4165f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2Njk4OTg2ZjM2MDQzNDcwYTMxNTZmODciLCJpYXQiOjE3MjEyNzY1Mjd9.3S7Tn3wUb2jJ75fD877asrjr_UWtCPbFi8n4cm6tE7o","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"_id\": \"6698986f36043470a3156f87\",\n  \"nombre\": \"John Doe\",\n  \"localidad\": \"New York\",\n  \"correo\": \"john@example.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://67.202.4.38:3000/api/carrito","urlObject":{"protocol":"http","port":"3000","path":["api","carrito"],"host":["67","202","4","38"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b382754-8eb9-4218-8d5a-338138f4165f"}],"id":"836735fa-0ab8-4404-957a-f11dd23bc9b9","_postman_id":"836735fa-0ab8-4404-957a-f11dd23bc9b9","description":""}]}