{"info":{"_postman_id":"367baaa4-d4c4-4c17-9a7c-2f98b6aca3b9","name":"Gestor de Gastos API","description":"<html><head></head><body><p>Estos son los Endpoints de la API de Gestión de Gastos</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"32483566","collectionId":"367baaa4-d4c4-4c17-9a7c-2f98b6aca3b9","publishedId":"2sB2cVf2Kk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-08T01:34:42.000Z"},"item":[{"name":"Register","id":"ad729dac-7f05-4d3f-9e99-e10dcbdcd790","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Juan Juan\",\r\n    \"email\": \"correo@correo.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register","description":"<p>Registro de Usuario</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad729dac-7f05-4d3f-9e99-e10dcbdcd790"},{"name":"Login","id":"362ae2f7-c006-4891-b884-17d9df9e1e1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"correo@correo.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login","description":"<p>Inicio de Sesión</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"362ae2f7-c006-4891-b884-17d9df9e1e1f"},{"name":"Añadir Gasto","id":"1d6d792a-3fd7-4096-ae97-13bd0885e835","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZjQ2MWE1YWY2YTZjNTI1MWE1MGE1OCIsImlhdCI6MTc0NDA2OTYwOCwiZXhwIjoxNzQ0MDczMjA4fQ.55B-cJUREcKdX4LhRQ_rMRGiFIN_gbCfmogduwepDDg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Salida con Amigos\",\r\n    \"amount\": 200.00,  \r\n    \"category\": \"Otros\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/expenses","description":"<p>Añadir un Gasto al sistema</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","expenses"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1d6d792a-3fd7-4096-ae97-13bd0885e835"},{"name":"Ver Gastos","id":"e97913ad-9d60-4fcc-976d-ee13649aef91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZjQ2MWE1YWY2YTZjNTI1MWE1MGE1OCIsImlhdCI6MTc0NDA3MzYzOCwiZXhwIjoxNzQ0MDc3MjM4fQ._SPoc3ib4HZSqiXrE5_hER9ZS4ii33naTWGYb-h6b-o","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://localhost:5000/api/expenses","urlObject":{"protocol":"http","port":"5000","path":["api","expenses"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e97913ad-9d60-4fcc-976d-ee13649aef91"},{"name":"Ver Gastos con filtrado","id":"692a77d1-85e6-457a-87e3-527350520ea5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZjQ2MWE1YWY2YTZjNTI1MWE1MGE1OCIsImlhdCI6MTc0NDA3MzYzOCwiZXhwIjoxNzQ0MDc3MjM4fQ._SPoc3ib4HZSqiXrE5_hER9ZS4ii33naTWGYb-h6b-o","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/expenses","description":"<p>Puedes filtrar tus gastos para ser mas especifico</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","expenses"],"host":["localhost"],"query":[{"disabled":true,"key":"filter","value":"last-week"},{"disabled":true,"key":"filter","value":"last-month"},{"disabled":true,"key":"filter","value":"last-3-months"},{"disabled":true,"key":"startDate","value":"2024-01-01"},{"disabled":true,"key":"endDate","value":"2024-03-01"},{"disabled":true,"key":"category","value":"Otros"}],"variable":[]}},"response":[],"_postman_id":"692a77d1-85e6-457a-87e3-527350520ea5"},{"name":"Actualizar un Gasto Existente","id":"d6be65cc-3286-4626-8068-1087bdd2d2da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZjQ2MWE1YWY2YTZjNTI1MWE1MGE1OCIsImlhdCI6MTc0NDA3MzYzOCwiZXhwIjoxNzQ0MDc3MjM4fQ._SPoc3ib4HZSqiXrE5_hER9ZS4ii33naTWGYb-h6b-o","type":"text"}],"body":{"mode":"raw","raw":"    {\r\n        \"title\": \"Salida con Amigos - Acttualizado\",\r\n        \"amount\": 200,\r\n        \"category\": \"Otros\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/expenses/67f46a7affbd5a77e6e97f77","urlObject":{"protocol":"http","port":"5000","path":["api","expenses","67f46a7affbd5a77e6e97f77"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6be65cc-3286-4626-8068-1087bdd2d2da"},{"name":"Eliminar un Gasto Existente","id":"96a87a6c-6a3f-4278-a440-45c547c0daec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZjQ2MWE1YWY2YTZjNTI1MWE1MGE1OCIsImlhdCI6MTc0NDA3MzYzOCwiZXhwIjoxNzQ0MDc3MjM4fQ._SPoc3ib4HZSqiXrE5_hER9ZS4ii33naTWGYb-h6b-o","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/expenses/67f46a7affbd5a77e6e97f77","urlObject":{"protocol":"http","port":"5000","path":["api","expenses","67f46a7affbd5a77e6e97f77"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"96a87a6c-6a3f-4278-a440-45c547c0daec"}]}