{"info":{"_postman_id":"6aea5ab5-7f49-4b52-a8be-fea37c3a4468","name":"RoboLinks","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14301069","collectionId":"6aea5ab5-7f49-4b52-a8be-fea37c3a4468","publishedId":"TzJuBJU8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-21T02:40:17.000Z"},"item":[{"name":"User","item":[{"name":"Create User","id":"b63a841d-d9ab-4113-8afe-808db0df8928","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"danjorloredo@gmail.com\",\r\n    \"type\": \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://rbgs.xyz/api/users","description":"<p>The user \"type\" can only be \"user\" or \"admin\", if it's other, the server is going to send an error.</p>\n","urlObject":{"protocol":"http","path":["api","users"],"host":["rbgs","xyz"],"query":[],"variable":[]}},"response":[],"_postman_id":"b63a841d-d9ab-4113-8afe-808db0df8928"},{"name":"Get All Users","id":"a0ebcb39-75cd-4a23-8b4d-8e979b5c20ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://rbgs.xyz/api/users","urlObject":{"protocol":"http","path":["api","users"],"host":["rbgs","xyz"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0ebcb39-75cd-4a23-8b4d-8e979b5c20ae"},{"name":"Delete User","id":"a0256f21-d3a7-4c9e-804a-e182f8809d3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/users/3","urlObject":{"protocol":"http","port":"8000","path":["api","users","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0256f21-d3a7-4c9e-804a-e182f8809d3e"},{"name":"Get User Type by Email","id":"fb225b08-46df-484d-9b81-1c12cf1630ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://rbgs.xyz/api/users/roborrego1@gmail.com","urlObject":{"protocol":"http","path":["api","users","roborrego1@gmail.com"],"host":["rbgs","xyz"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb225b08-46df-484d-9b81-1c12cf1630ac"}],"id":"c9019450-3ff3-4d68-9946-f1248677e078","_postman_id":"c9019450-3ff3-4d68-9946-f1248677e078","description":""},{"name":"Links","item":[{"name":"Get All Links","id":"31c8c17f-8b50-4046-8a0f-3d92811e85b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/links?tags=docs","description":"<p>Los links se encuentran ordenados por el contador en orden descendiente. Se puede filtrar por privacidad (1 o 0). </p>\n<p>Los parámetros title, url y short_url filtrarán por los links que contengan el valor. Por ejemplo title=github, puede regresar los links cuyo título sea \"Landing GitHub\", \"GitHub Covid\", etc...</p>\n<p>Finalmente puedes filtrar por tags añadíendolas con una \",\" por ejemplo tags=docs,presentation</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","links"],"host":["localhost"],"query":[{"disabled":true,"key":"url","value":"githu"},{"disabled":true,"key":"title","value":"Github"},{"disabled":true,"key":"short_url","value":"git"},{"key":"tags","value":"docs"}],"variable":[]}},"response":[],"_postman_id":"31c8c17f-8b50-4046-8a0f-3d92811e85b7"},{"name":"Create Link","id":"f6f8b833-6caf-41d9-8964-f5b61355f0d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"url\": \"https://www.adobe.com\",\r\n    \"short_url\": \"http://rbgs.xyz/adobe\",\r\n    \"title\": \"Adobe\",\r\n    \"private\": 0,\r\n    \"image\": null,\r\n    \"tags\": [\r\n        \"social\",\r\n        \"sideProjects\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://rbgs.xyz/api/links","description":"<p>\"url\" and \"short_url\" have to be unique, in the tags sections add the array of tags that are contained in the link. Example the link \"Landing GitHub\" can have the tags [\"github\",\"social\",\"programming\"].</p>\n<p>Current possible tags:\"@home\", \"candidates\", \n\"contests\", \"covid\", \"docs\", \"drones\", \"electronics\", \"github\", \"larcOpen\", \"mechanics\", \"presentation\", \"programming\", \"robocup\", \"sideProjects\", \"social\", \"sponsors\", \"vsss\", \"youtube\", \"workshop\"</p>\n","urlObject":{"protocol":"http","path":["api","links"],"host":["rbgs","xyz"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6f8b833-6caf-41d9-8964-f5b61355f0d6"},{"name":"Get Link by ID","id":"4a45dcc4-d9fa-41a6-bb86-4ea391305f78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/links/2","urlObject":{"protocol":"http","port":"8000","path":["api","links","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a45dcc4-d9fa-41a6-bb86-4ea391305f78"},{"name":"Redirect to a Url","id":"534a07ef-4c22-4f01-86a6-dbff5c272721","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://rbgs.xyz/3XbiK9e","description":"<p>Redirect to real url and increment 1 to \"contador\"</p>\n","urlObject":{"protocol":"http","path":["3XbiK9e"],"host":["rbgs","xyz"],"query":[],"variable":[]}},"response":[],"_postman_id":"534a07ef-4c22-4f01-86a6-dbff5c272721"},{"name":"Update Link","id":"d4195d7d-9104-461f-87a7-aba687921c2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"url\": \"https://github2.com\",\r\n    \"tags\": [\r\n        \"docs\",\r\n        \"presentation\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/links/2","description":"<p>In case you want to update the tags section of a link, you need to provide the array of new tags. For example if you only want to add 1 more tag, you need to provide the other ones that are contained in the link.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","links","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4195d7d-9104-461f-87a7-aba687921c2d"},{"name":"Delete a Link","id":"5ccf3046-3e8e-4c37-9c61-64d4874af82b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://rbgs.xyz/api/links/169","description":"<p>It also deletes the tags row created by the Link</p>\n","urlObject":{"protocol":"http","path":["api","links","169"],"host":["rbgs","xyz"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ccf3046-3e8e-4c37-9c61-64d4874af82b"}],"id":"7bfe04cc-bc8d-466f-aafb-b64231c582a6","_postman_id":"7bfe04cc-bc8d-466f-aafb-b64231c582a6","description":""}]}