{"info":{"_postman_id":"9d32e182-e0a3-4b63-b554-4b53ebd57352","name":"Mati API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"20221657","collectionId":"9d32e182-e0a3-4b63-b554-4b53ebd57352","publishedId":"UyrGAu2u","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-05-03T21:13:47.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"5cacddb6-e266-420d-98a9-ef982f4db5ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@test.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://apimati.herokuapp.com/api/auth/login","description":"<p>You must send email and password, to continue they must coincide with an user already created.</p>\n<p>Debes enviar email y contraseña, para continuar deben coincidir con un usuario ya creado.</p>\n","urlObject":{"protocol":"https","path":["api","auth","login"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cacddb6-e266-420d-98a9-ef982f4db5ab"},{"name":"Google Login","id":"c8db7e79-0b49-405f-b0be-73dcd0f3d273","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id_token\": \"abc23\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://apimati.herokuapp.com/api/auth/google","description":"<p>You must send an id_token generated by google.</p>\n<p>Debes enviar un id_token generado por google</p>\n","urlObject":{"protocol":"https","path":["api","auth","google"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8db7e79-0b49-405f-b0be-73dcd0f3d273"},{"name":"Register","id":"b06ca488-5804-422b-a073-73b2800e4faa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\",\r\n    \"email\": \"test@test.com\",\r\n    \"password\": \"123456\",\r\n    \"age\": \"20\",\r\n    \"gender\": \"MASCULINO\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://apimati.herokuapp.com/api/auth/register","description":"<p>Name, email and password and gender are required fields, age is optional, we need to send the required fields to create and user.</p>\n<p>Nombre, correo electrónico y contraseña y género son campos obligatorios, la edad es opcional, necesitamos enviar los campos obligatorios para crear un usuario.</p>\n","urlObject":{"protocol":"https","path":["api","auth","register"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b06ca488-5804-422b-a073-73b2800e4faa"},{"name":"Who Am I","id":"d4fdebf9-757b-4fc6-b892-1b2c8fe5ef7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MmM4ZWY2N2M2ZDljYjg5NzI2NmQ2ODUiLCJpYXQiOjE2Njc1Nzk2MjcsImV4cCI6MTY2NzU5NDAyN30.v5cxTdhBNONN3PlATy6D8fM0QtGZVvOZRsAtfwMw1eA\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mati-api-production.up.railway.app/api/auth/whoami","description":"<p>We need to send a token, and you will get the id of the token owner.</p>\n<p>Necesitamos enviar un token y obtendrá el ID del propietario del token.</p>\n","urlObject":{"protocol":"https","path":["api","auth","whoami"],"host":["mati-api-production","up","railway","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4fdebf9-757b-4fc6-b892-1b2c8fe5ef7e"}],"id":"e3873c64-595d-4d66-80b9-649821797357","description":"<p>In this folder we have all the necessary endpoint to our authentication process.</p>\n<p>En esta carpeta tenemos todos los endpoints necesarios para nuestro proceso de autenticación.</p>\n","_postman_id":"e3873c64-595d-4d66-80b9-649821797357"},{"name":"Users","item":[{"name":"Get Users - Paginated","id":"e057efbf-fc82-46b2-8006-d3b315497a40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MjdmMTVkMjgxODYwNzEwMmJjYmIzNTEiLCJpYXQiOjE2NTcyNzkyNTQsImV4cCI6MTY1NzI5MzY1NH0.R6ZoHPAnYjZo4YPxEhpTYwL4hUL9MVBUnUhvVZTcMFQ","type":"text"}],"url":"https://apimati.herokuapp.com/api/users?limit=5&skip=5","description":"<p>You can limit the search by \"limit\" and set your step with \"skip\" like this ?limit=5&amp;skip=5, you will be able to see the total of users in the database and the users information. It's necessary to send a valid token.</p>\n<p>Puedes limitar la búsqueda por \"limit\" y establecer tu paso con \"skip\" de la siguiente manera ?limit=5&amp;skip=5, podrás ver el total de usuarios en la base de datos y la información de los usuarios. Es necesario enviar un token válido.</p>\n","urlObject":{"protocol":"https","path":["api","users"],"host":["apimati","herokuapp","com"],"query":[{"key":"limit","value":"5"},{"key":"skip","value":"5"}],"variable":[]}},"response":[],"_postman_id":"e057efbf-fc82-46b2-8006-d3b315497a40"},{"name":"Get User","id":"99fa3da0-fc05-432c-a6c9-2dcdfb7fbb6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MmM4ZWY2N2M2ZDljYjg5NzI2NmQ2ODUiLCJpYXQiOjE2NjM4NjY4MzUsImV4cCI6MTY2Mzg4MTIzNX0.mmsVKGDAax3Ie1w1xBHt1E5Zpm7P2V_jEApkGRrJiDM","type":"text"}],"url":"https://apimati.herokuapp.com/api/users/62c8ef67c6d9cb897266d685","description":"<p>You must send a valid token as header and the user ID as param and you will be able to see the user information.</p>\n<p>Debe enviar un token válido en el header y la ID de usuario como parámetro y podrá ver la información del usuario.</p>\n","urlObject":{"protocol":"https","path":["api","users","62c8ef67c6d9cb897266d685"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"99fa3da0-fc05-432c-a6c9-2dcdfb7fbb6c"},{"name":"Create User","id":"8921bfe9-008d-4d1f-bc45-f9e090c36ac7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MjdkOWE0ZDE0NzZkODNhMTU4NTRmZDEiLCJpYXQiOjE2NTQxNDIxNzksImV4cCI6MTY1NDE1NjU3OX0.obahEj2ib0tDhWGr3wfeYvSBWHWe-ohKIyb2KaroeR0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Juan\",\r\n    \"email\": \"Juan@test.com\",\r\n    \"password\": \"123456\",\r\n    \"age\": \"20\",\r\n    \"gender\": \"MASCULINO\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://apimati.herokuapp.com/api/users","description":"<p>Only admin users can use this endpoint, name, email, password and gender are required, age is optional. A valid admin token needs to be send to create an user.</p>\n<p>Solo los usuarios administradores pueden usar este endpoint, se requiere nombre, correo electrónico, contraseña y género, la edad es opcional. Se debe enviar un token de administrador válido para crear un usuario.</p>\n","urlObject":{"protocol":"https","path":["api","users"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8921bfe9-008d-4d1f-bc45-f9e090c36ac7"},{"name":"Update User","id":"3cb74b97-9e98-44da-9470-696774a6a850","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MjdmMTVkMjgxODYwNzEwMmJjYmIzNTEiLCJpYXQiOjE2NTcxODEwMzIsImV4cCI6MTY1NzE5NTQzMn0.vAM8l5bVfs3LCiI4vrzEz9xtcegQ22-k54PLav3XPt4","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Pedro\",\r\n    \"age\": \"20\",\r\n    \"gender\": \"FEMENINO\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://apimati.herokuapp.com/api/users/62c400f8ec6f2020f97856e1","description":"<p>You must send the ID of the user you want to update as param, a valid token as header and fields to update as body, you just can update name, age and gender.</p>\n<p>StartFragment</p>\n<p>Debe enviar la identificación del usuario que desea actualizar como parámetro, un token válido como encabezado y campos para actualizar como cuerpo, solo puede actualizar el nombre, la edad y el sexo.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"https","path":["api","users","62c400f8ec6f2020f97856e1"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3cb74b97-9e98-44da-9470-696774a6a850"},{"name":"Delete User","id":"665227df-c088-4f7c-8206-6ced6f886a77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MjdmMTVkMjgxODYwNzEwMmJjYmIzNTEiLCJpYXQiOjE2NTQxNDI4MzMsImV4cCI6MTY1NDE1NzIzM30.XHNu8myxs46MRZGcZNllOT5WTgi4Ny5XmKtUYo0GT0c","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://apimati.herokuapp.com/api/users/627d9a4d1476d83a15854fd1","description":"<p>You need to send a valid token as header and the user's ID as param to delete an user, just users with \"ADMIN_ROLE\" can delete.</p>\n<p>Debe enviar un token válido como encabezado y la ID del usuario como parámetro para eliminar un usuario, solo los usuarios con \"ADMIN_ROLE\" pueden eliminar.</p>\n","urlObject":{"protocol":"https","path":["api","users","627d9a4d1476d83a15854fd1"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"665227df-c088-4f7c-8206-6ced6f886a77"}],"id":"776461ff-8340-4c9d-a723-3da1c14c18c9","description":"<p>In this folder we have the CRUD requests to users.</p>\n<p>En esta carpeta tenemos la solicitudes CRUD a los usuarios.</p>\n","_postman_id":"776461ff-8340-4c9d-a723-3da1c14c18c9"},{"name":"Friends","item":[{"name":"Add Friends","id":"af61e886-89b7-416b-bc3c-5a6a4c2cf995","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MjdmMTVkMjgxODYwNzEwMmJjYmIzNTEiLCJpYXQiOjE2NTcyNzkyNTQsImV4cCI6MTY1NzI5MzY1NH0.R6ZoHPAnYjZo4YPxEhpTYwL4hUL9MVBUnUhvVZTcMFQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"friend_id\": \"627f15d2818607102bcbb351\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://apimati.herokuapp.com/api/users/follows/627f15d2818607102bcbb351","description":"<p>You need to send a valid token as header, your ID as param and your friends ID as body to add a new friend.</p>\n<p>Debe enviar un token válido como encabezado, su ID como parámetro y la ID de sus amigos como cuerpo para agregar un nuevo amigo.</p>\n","urlObject":{"protocol":"https","path":["api","users","follows","627f15d2818607102bcbb351"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"af61e886-89b7-416b-bc3c-5a6a4c2cf995"}],"id":"e767d8e0-d14d-46f3-b984-93858e571603","description":"<p>In this folder we have the endpoint to add friends.</p>\n<p>En esta carpeta tenemos el punto final para agregar amigos.</p>\n","_postman_id":"e767d8e0-d14d-46f3-b984-93858e571603"},{"name":"Search","item":[{"name":"Search Users","id":"a9cc3d7f-a8e7-4301-9bed-253a68fcdc1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MjdmMTVkMjgxODYwNzEwMmJjYmIzNTEiLCJpYXQiOjE2NTcyNzkyNTQsImV4cCI6MTY1NzI5MzY1NH0.R6ZoHPAnYjZo4YPxEhpTYwL4hUL9MVBUnUhvVZTcMFQ","type":"text"}],"url":"https://apimati.herokuapp.com/api/search/juan","description":"<p>You can search users by ID, name and email, you must send the information in the params and you will get all the users that match your search.</p>\n<p>Puede buscar usuarios por ID, nombre y correo electrónico, debe enviar la información en los parámetros y obtendrá todos los usuarios que coincidan con su búsqueda.</p>\n","urlObject":{"protocol":"https","path":["api","search","juan"],"host":["apimati","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a9cc3d7f-a8e7-4301-9bed-253a68fcdc1d"}],"id":"6292fbcc-2664-4bb9-a829-99036e9c96b6","description":"<p>In this folder you have the endpoint to search users in the database</p>\n","_postman_id":"6292fbcc-2664-4bb9-a829-99036e9c96b6"}]}