-
Notifications
You must be signed in to change notification settings - Fork 1
/
Insomnia.json
1 lines (1 loc) · 43 KB
/
Insomnia.json
1
{"_type":"export","__export_format":4,"__export_date":"2022-02-26T21:32:17.731Z","__export_source":"insomnia.desktop.app:v2021.7.2","resources":[{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521ce2d0563","parentId":"fld_wrk_205ca41958af42c8b5a46f6f85147521e9c45563","modified":1645327586044,"created":1645324394509,"url":"{{ base_url }}/warning","name":"Obtiene todos los warnings o todos los warnings de un user","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_e1acda5951234d26a00fcd153e3aed2a"}],"authentication":{},"metaSortKey":-1645324394509,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_wrk_205ca41958af42c8b5a46f6f85147521e9c45563","parentId":"wrk_205ca41958af42c8b5a46f6f85147521","modified":1645307266378,"created":1645307266378,"name":"Warning","description":"Advertencias a los mentees","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1645307266378,"_type":"request_group"},{"_id":"wrk_205ca41958af42c8b5a46f6f85147521","parentId":null,"modified":1635907787439,"created":1635907787439,"name":"calomentor.yaml","description":"","scope":"design","_type":"workspace"},{"_id":"req_51d4293970f14bf28a4b53fecbf2d636","parentId":"fld_wrk_205ca41958af42c8b5a46f6f85147521e9c45563","modified":1645307272012,"created":1645241371310,"url":"{{ base_url }}/warning/755af9aa-f5c4-4ddd-a29a-78b8d9ee6f67","name":"Perdonar un warning","description":"","method":"PATCH","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1645241371310,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1370ce4f2c2040f6bb91ab0d54f49451","parentId":"fld_wrk_205ca41958af42c8b5a46f6f85147521e9c45563","modified":1645325330366,"created":1645241143975,"url":"{{ base_url }}/warning/{{ _.id }}","name":"Obtiene un warning en base al id de discord de un mentee","description":"","method":"GET","body":{},"parameters":[],"headers":[{"id":"pair_b0d1b2704b44437482973e35c5e40f2a","name":"x-api-key","value":"{{ _.api_key }}","description":""}],"authentication":{},"metaSortKey":-1645241371260,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_52bb77fe65f042478b2e2a998c55785b","parentId":"fld_wrk_205ca41958af42c8b5a46f6f85147521e9c45563","modified":1645325244659,"created":1645241204910,"url":"{{ base_url }}/warning","name":"Agregar un warning","description":"","method":"POST","body":{"mimeType":"application/json","text":"{ \n\t\"mentee_id\": \"\",\n\t\"warn_type\": \"\", \n\t\"warn_cause\": \"\", \n\t\"mentorship_id\": \"\", \n\t\"warning_author_id\":\"\" \n}"},"parameters":[],"headers":[{"id":"pair_a4fafbf4cdbf4d9bba5fa602ea12c7dd","name":"x-api-key","value":"{{ _.api_key }}","description":""},{"name":"Content-Type","value":"application/json","id":"pair_dc55a20ec2de40639f7b5598c82564fa"}],"authentication":{},"metaSortKey":-1645241371210,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521ae7eaa0c","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475219f8a2389","modified":1644700402496,"created":1641087434917,"url":"{{ base_url }}/user/{{ id }}","name":"Modifica un usuario a partir de su id","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\t\"discord_username\": \"elfranmper#4289\",\n\t\t\"full_name\": \"Francisco Peralta\",\n\t\t\"about_me\": \"Luqui 2\",\n\t\t\"email\": \"[email protected]\",\n\t\t\"url_photo\": \"\",\n\t\t\"role\": [\n\t\t\t\"mentor\"\n\t\t],\n\t\t\"links\": {\n\t\t\t\"github\": \"\",\n\t\t\t\"twitter\": \"\",\n\t\t\t\"linkedin\": \"\",\n\t\t\t\"portfolio\": \"\"\n\t\t},\n\t\t\"skills\": [\n\t\t\t\"Mobile\"\n\t\t],\n\t\t\"modified_by\": \"\"\n\t}"},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_23afa97c090543589db17d6b766095c9"},{"name":"Content-Type","value":"application/json","id":"pair_7c0ef02c8ce5417fb5ae45d9d12a51b6"}],"authentication":{},"metaSortKey":-1641087434917,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_wrk_205ca41958af42c8b5a46f6f851475219f8a2389","parentId":"wrk_205ca41958af42c8b5a46f6f85147521","modified":1638075971028,"created":1638075971028,"name":"User","description":"Mentores o mentees","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1638075971028,"_type":"request_group"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521f86b1a6c","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475219f8a2389","modified":1644700105468,"created":1641087434913,"url":"{{ base_url }}/user/activate/{{ id }}","name":"Modifica el estado activo o inactivo de un usuario a partir de su id","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"user_status\": true,\n\t\"modified_by\": \"364256538056982528\"\n}"},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_099bb3de2877486eb10830d525fd926a"},{"name":"Content-Type","value":"application/json","id":"pair_49557c3c80234bf3a735f3e1ee2ae7d0"}],"authentication":{},"metaSortKey":-1641087434913,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521f60a1f76","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475219f8a2389","modified":1643926434851,"created":1641082695379,"url":"{{ base_url }}/user/{{ id }}","name":"Elimina un usuario a partir de su id","description":"","method":"DELETE","body":{},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_10995ba0e5674fdeaebb17589373b23d"}],"authentication":{},"metaSortKey":-1641082695379,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f851475217c785edd","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475219f8a2389","modified":1644685344153,"created":1641082234566,"url":"{{ base_url }}/user/{{ id }}","name":"Obtiene un usuario a partir de su id","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_60c178ecaf83410d8b846ddea96daf55"}],"authentication":{},"metaSortKey":-1641082234566,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521259c8686","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475219f8a2389","modified":1645240914752,"created":1638098724294,"url":"{{ base_url }}/user","name":"Obtiene todos los mentores","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_065d8040f26047e982dd5b35ee58da4e"}],"authentication":{},"metaSortKey":-1638098724294,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521fe3d55d0","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475219f8a2389","modified":1644700139050,"created":1638075970978,"url":"{{ base_url }}/user","name":"Crea un nuevo user","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"id\": \"887702089315278870\",\n \"discord_username\": \"elfranmper#4289\",\n \"full_name\": \"Francisco Peralta\",\n \"about_me\": \"Luqui\",\n \"email\": \"[email protected]\",\n \"url_photo\": \"\",\n \"role\": [\n \"mentor\"\n ],\n \"links\": {\n \"github\": \"\",\n \"twitter\": \"\",\n \"linkedin\": \"\",\n \"portfolio\": \"\"\n },\n \"skills\": [\n \"Mobile\"\n ]\n}"},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_029ce9f55b3245c29c670fb6c8e05350"},{"name":"Content-Type","value":"application/json","id":"pair_680b0bfbcb524562bd5b18d7fd2a15f3"}],"authentication":{},"metaSortKey":-1638075970979,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f851475219a10b4af","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911093293,"created":1641082234587,"url":"{{ base_url }}/time-slot/{{ _.timeslot_id }}","name":"Actualiza el estado de ocupación del time slot","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n \"is_occupied\": true\n}"},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ xApiKey }}","id":"pair_5a05cb9bcf97459893d2febe30f13538"},{"name":"Content-Type","value":"application/json","id":"pair_b342aa3d505c4414972f36503466758c"}],"authentication":{},"metaSortKey":-1641082234587,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","parentId":"wrk_205ca41958af42c8b5a46f6f85147521","modified":1636161175676,"created":1636161175676,"name":"TimeSlot","description":"Turnos que tiene disponibles un mentor","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1636161175676,"_type":"request_group"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521963bb177","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911094615,"created":1641082234578,"url":"{{ base_url }}/time-slot/{{ _.user_id }}/mentee","name":"Añade o actualiza el mentee del time slot","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n \"mentee_id\": \"364256538056982528\",\n \"mentee_username\": \"Santiago Santana#2098\",\n \"mentorship_token\": \"ccb98c48-c03e-4091-acce-fa719f08bd4b\"\n}"},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_b422432ce04547ecbeb9ae5b639ea92e"},{"name":"Content-Type","value":"application/json","id":"pair_ffaa5acdca454865b3133e36642496f7"}],"authentication":{},"metaSortKey":-1641082234578,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f851475211d08e47a","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911095406,"created":1637108967690,"url":"{{ base_url }}/time-slot/ccb98c48-c03e-4091-acce-fa719f08bd4b","name":"Ocupa el time slot con el id correspondiente","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n \"is_occupied\": true\n}"},"parameters":[{"id":"pair_9f5437b56888450091489a318042af11","name":"","value":"","description":""}],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_092f4771e62a4b66b6a788f3eac46480"},{"name":"Content-Type","value":"application/json","id":"pair_865fe0f59e6f41c588befc99645dc428"}],"authentication":{},"metaSortKey":-1637108967690,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_660e27410f744e41bd41226aa966cf34","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911095965,"created":1637896231796,"url":"{{ base_url }}/time-slot/ccb98c48-c03e-4091-acce-fa719f08bd4b","name":"Desocupa el time slot con el id correspondiente","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n \"is_occupied\": false\n}"},"parameters":[{"id":"pair_9f5437b56888450091489a318042af11","name":"","value":"","description":""}],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_092f4771e62a4b66b6a788f3eac46480"},{"name":"Content-Type","value":"application/json","id":"pair_865fe0f59e6f41c588befc99645dc428"}],"authentication":{},"metaSortKey":-1637066324148,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_e833b5b453114deda52314e3a1a5bbde","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911017979,"created":1637896312592,"url":"{{ base_url }}/time-slot/ccb98c48-c03e-4091-acce-fa719f08bd4b/mentee","name":"Añade o actualiza el mentee correspondiente a un time slot","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n \"mentee_id\": \"364256538056982528\",\n\t\"mentee_username\": \"Santiago Santana#2098\",\n\t\"mentorship_token\": \"{% uuid 'v4' %}\"\n}"},"parameters":[{"id":"pair_9f5437b56888450091489a318042af11","name":"","value":"","description":""}],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_092f4771e62a4b66b6a788f3eac46480"},{"name":"Content-Type","value":"application/json","id":"pair_865fe0f59e6f41c588befc99645dc428"}],"authentication":{},"metaSortKey":-1637045002377,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f8514752184fa8491","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911127690,"created":1637023680605,"url":"{{ base_url }}/time-slot/{{ _.timeslot_id }}","name":"Obtiene un time slot por id","description":"","method":"GET","body":{},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_33fcbd57c9b34c54b1baa8afac05ff4e"}],"authentication":{},"metaSortKey":-1637023680606,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f851475217fde02c4","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911032493,"created":1636425243995,"url":"{{ base_url }}/time-slot","name":"Crea nuevo time slot","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"user_id\": \"{{ _.user_id }}\",\n \"slot_date\": 1647492000000\t\n}"},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_37dae09f67ca4c0eb610f35daf1b7e89"},{"name":"Content-Type","value":"application/json","id":"pair_21d236864f084eee865978df20294a50"}],"authentication":{},"metaSortKey":-1636425243995,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f851475216bad66ca","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911041338,"created":1636313067600,"url":"{{ base_url }}/time-slot/user/{{ _.user_id }}","name":"Obtiene todos los time slots de un user","description":"","method":"GET","body":{},"parameters":[{"name":"slot_date","disabled":true,"value":"string","id":"pair_8a79724cf78242a4a48346759e886cc2"},{"name":"only_free","disabled":true,"value":"true","id":"pair_04a6f481c9564d4ca3449d2c6019c7e4"}],"headers":[{"name":"Content-Type","disabled":false,"value":"application/json","id":"pair_2a3b999d78744e1e8b9692c00c079c12","description":""},{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_571a4e2f8e45423490cfad440cfa374e"},{"id":"pair_face597c9e0345618503a0ecf56a5932","name":"","value":"","description":""}],"authentication":{},"metaSortKey":-1636313067600,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_6ffc29e86420400e92c0f6b8edebeb19","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911046308,"created":1636994338094,"url":"{{ base_url }}/time-slot/user/{{ _.user_id }}","name":"Obtiene todos los time slots de un user para una fecha especifica","description":"","method":"GET","body":{},"parameters":[{"name":"slot_date","disabled":false,"value":"1636426323768","id":"pair_8a79724cf78242a4a48346759e886cc2"},{"name":"only_free","disabled":false,"value":"true","id":"pair_04a6f481c9564d4ca3449d2c6019c7e4"}],"headers":[{"name":"Content-Type","disabled":false,"value":"application/json","id":"pair_2a3b999d78744e1e8b9692c00c079c12","description":""},{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_571a4e2f8e45423490cfad440cfa374e"},{"id":"pair_face597c9e0345618503a0ecf56a5932","name":"","value":"","description":""}],"authentication":{},"metaSortKey":-1636237608296.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521b77adeeb","parentId":"fld_wrk_205ca41958af42c8b5a46f6f851475210cc10335","modified":1645911052299,"created":1638068302932,"url":"{{ base_url }}/time-slot/{{ _.timeslot_id }}","name":"Elimina un time slot","description":"","method":"DELETE","body":{},"parameters":[],"headers":[{"name":"X-API-KEY","disabled":false,"value":"{{ _.api_key }}","id":"pair_bd935093d0754bed9201f695003944af"}],"authentication":{},"metaSortKey":-1636237608246.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f85147521e3966aff","parentId":"fld_wrk_205ca41958af42c8b5a46f6f85147521da30b47c","modified":1645911058380,"created":1636162148993,"url":"{{ base_url }}/mentorship/{{ _.user_id }}","name":"Obtiene todas las mentorías de un user","description":"","method":"GET","body":{"mimeType":"application/json","text":""},"parameters":[{"name":"filter","disabled":false,"value":"CANCEL","id":"pair_77764e90380946cb8c4e1bac03b14eaa"},{"name":"filterDates","disabled":false,"value":"PAST","id":"pair_045957196cde459ea75d1a80f6625145"},{"id":"pair_73be700802124b279b2ebd61c5909f02","name":"","value":"","description":""}],"headers":[{"name":"Content-Type","disabled":false,"value":"application/json","id":"pair_a6a95aab71be48ec844b4322a81b58c5"},{"id":"pair_7b3366f318924842a71ab4fbb620b1f2","name":"x-api-key","value":"{{ _.api_key }}","description":""},{"id":"pair_18c5a20d554140d882ccc1e5527d6a38","name":"","value":"","description":""}],"authentication":{},"metaSortKey":-1636162148993,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_wrk_205ca41958af42c8b5a46f6f85147521da30b47c","parentId":"wrk_205ca41958af42c8b5a46f6f85147521","modified":1636158796231,"created":1636158796231,"name":"Mentorship","description":"Mentoría","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1636158796231,"_type":"request_group"},{"_id":"req_198b6e3d28034f8ca67a6a8fe55c518e","parentId":"fld_wrk_205ca41958af42c8b5a46f6f85147521da30b47c","modified":1645911060779,"created":1636329719300,"url":"{{ base_url }}/mentorship","name":"Obtiene todas las mentorías","description":"","method":"GET","body":{"mimeType":"application/json","text":""},"parameters":[{"name":"filter","disabled":true,"value":"ACTIVE","id":"pair_77764e90380946cb8c4e1bac03b14eaa"},{"name":"filterDates","disabled":true,"value":"ALL","id":"pair_045957196cde459ea75d1a80f6625145"}],"headers":[{"name":"Content-Type","disabled":false,"value":"application/json","id":"pair_a6a95aab71be48ec844b4322a81b58c5"},{"id":"pair_7b3366f318924842a71ab4fbb620b1f2","name":"x-api-key","value":"{{ _.api_key }}","description":""},{"id":"pair_18c5a20d554140d882ccc1e5527d6a38","name":"user-token","value":"","description":""}],"authentication":{},"metaSortKey":-1636160472607.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_wrk_205ca41958af42c8b5a46f6f851475211938b83c","parentId":"fld_wrk_205ca41958af42c8b5a46f6f85147521da30b47c","modified":1645911084406,"created":1636158796222,"url":"{{ base_url }}/mentorship","name":"Crea la mentoria","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"mentor_id\": \"{{ _.user_id }}\",\n \"mentee_id\": \"{{ _.user_id }}\",\n \"mentee_name\": \"Santiago Santana\",\n \"mentee_username_discord\": \"Santiago Santana#2098\",\n \"mentee_email\": \"[email protected]\",\n \"info\": \"\",\n \"time_slot_id\": \"{% response 'body', 'req_wrk_205ca41958af42c8b5a46f6f851475217fde02c4', 'b64::JC5kYXRhLmlk::46b', 'never', 60 %}\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","disabled":false,"value":"application/json","id":"pair_83162fd8cb4547b2867e03c3be8833ed"},{"name":"x-api-key","value":"{{ _.api_key }}","id":"pair_a0523b9926c143448affdb0b935148df","description":""}],"authentication":{},"metaSortKey":-1636158796222,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_4ae456d7fd6c8f87b3bc429346564a97fd2e7cfd","parentId":"wrk_205ca41958af42c8b5a46f6f85147521","modified":1637891712367,"created":1635907787471,"name":"Base Environment","data":{"base_url":"{{ scheme }}://{{ host }}{{ base_path }}"},"dataPropertyOrder":{"&":["base_url"]},"color":null,"isPrivate":false,"metaSortKey":1635907787471,"_type":"environment"},{"_id":"jar_4ae456d7fd6c8f87b3bc429346564a97fd2e7cfd","parentId":"wrk_205ca41958af42c8b5a46f6f85147521","modified":1635907787476,"created":1635907787476,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_2841c2dd275e4f08b4b96aee4492d5e6","parentId":"wrk_205ca41958af42c8b5a46f6f85147521","modified":1645910972546,"created":1635907787449,"fileName":"Calomentor","contents":"openapi: 3.0.0\ninfo:\n description: \"Meh\"\n version: 0.0.1\n title: Calomentor\n contact:\n email: [email protected]\nservers:\n - url: https://gnoqe5kho1.execute-api.sa-east-1.amazonaws.com/dev\n - url: http://localhost:3001/dev\nsecurity:\n - ApiKeyAuth: []\nexternalDocs:\n description: Datos sobre el proyecto\n url: \"https://github.com/hifrontendcafe/calomentor\"\ntags:\n - name: Mentorship\n description: Mentoría\n - name: TimeSlot\n description: Turnos que tiene disponibles un mentor\n - name: User\n description: Mentores o mentees\n - name: Warning\n description: Advertencias a los mentees\n\npaths:\n /mentorship:\n post:\n tags:\n - Mentorship\n summary: Crea una mentoria\n description: \"Crea una mentoria y dispara los eventos de confirmacion y recordatorios 2 hs antes de la mentoria\"\n operationId: addMentorship\n requestBody:\n $ref: \"#/components/requestBodies/Mentorship\"\n responses:\n \"200\":\n description: Mentoría creada\n content:\n application/json:\n schema:\n type: object\n properties:\n status:\n type: number\n enum:\n - 200\n info:\n type: string\n enum:\n - \"OK\"\n \"403\":\n $ref: '#/components/responses/Forbidden'\n /mentorship/{id}:\n get:\n tags:\n - Mentorship\n summary: Obtiene todas las mentorías de un user\n operationId: getMentorshipsByUser\n parameters:\n - name: id\n in: path\n description: Id del user\n required: true\n schema:\n type: number\n example: 364256538056982528\n - name: filter\n in: query\n required: false\n schema:\n type: string\n enum:\n - \"ACTIVE\"\n - \"CANCEL\"\n - \"CONFIRMED\"\n - name: filterDates\n in: query\n required: false\n schema:\n type: string\n enum:\n - \"PAST\"\n - \"FUTURE\"\n responses:\n \"200\":\n $ref: \"#/components/responses/MentorshipList\"\n \"400\":\n description: Invalid status value\n \"403\":\n $ref: \"#/components/responses/Forbidden\"\n /time-slot/user/{id}:\n get:\n tags:\n - TimeSlot\n summary: Obtiene todos los time slots de un user\n operationId: getTimeSlotsByUser\n parameters:\n - name: id\n in: path\n description: Id del user\n required: true\n schema:\n type: number\n example: 364256538056982528\n - name: \"slot_date\"\n description: Fecha a buscar (Opcional, por defecto null, trae todos los slots para el user_id ), ECMAScript date\n in: query\n required: false\n schema:\n type: string\n format: date\n - name: \"only_free\"\n description: Trae las mentorías no ocupadas\n in: query\n required: false\n schema:\n type: boolean\n responses:\n \"200\":\n $ref: \"#/components/responses/TimeSlotList\"\n \"400\":\n description: Invalid status value\n \"403\":\n $ref: \"#/components/responses/Forbidden\"\n /time-slot/{id}:\n get:\n tags:\n - TimeSlot\n summary: Obtiene un time slot por id\n operationId: getTimeSlot\n parameters:\n - name: id\n in: path\n description: Id del time slot\n required: true\n schema:\n type: string\n example: \"ccb98c48-c03e-4091-acce-fa719f08bd4b\"\n responses:\n \"200\":\n $ref: \"#/components/responses/TimeSlot\"\n patch:\n tags:\n - TimeSlot\n summary: Actualiza el estado de ocupación del time slot\n operationId: updateTimeSlotState\n parameters:\n - name: id\n in: path\n description: Id del time slot\n required: true\n schema:\n type: string\n example: \"ccb98c48-c03e-4091-acce-fa719f08bd4b\"\n requestBody:\n $ref: \"#/components/requestBodies/UpdateTimeSlotOccupationState\"\n responses:\n \"200\":\n $ref: \"#/components/responses/TimeSlot\"\n delete:\n tags:\n - TimeSlot\n summary: Elimina un time slot\n operationId: deleteTimeSlot\n parameters:\n - name: id\n in: path\n description: Id del time slot\n required: true\n schema:\n type: string\n example: \"ccb98c48-c03e-4091-acce-fa719f08bd4b\"\n responses:\n \"200\":\n $ref: \"#/components/responses/TimeSlot\"\n /time-slot/{id}/mentee:\n patch:\n tags:\n - TimeSlot\n summary: Añade o actualiza el mentee del time slot\n operationId: addMenteeToTimeSlot\n parameters:\n - name: id\n in: path\n description: Id del time slot\n required: true\n schema:\n type: string\n example: \"ccb98c48-c03e-4091-acce-fa719f08bd4b\"\n requestBody:\n $ref: \"#/components/requestBodies/UpdateTimeSlotAddMentee\"\n responses:\n \"200\":\n $ref: \"#/components/responses/TimeSlot\"\n /time-slot:\n post:\n tags:\n - TimeSlot\n summary: Crea nuevo time slot\n operationId: addTimeSlot\n requestBody:\n $ref: \"#/components/requestBodies/TimeSlot\"\n responses:\n \"200\":\n $ref: \"#/components/responses/TimeSlot\"\n /user:\n post:\n tags:\n - User\n summary: Crea un nuevo user\n operationId: createUser\n requestBody:\n $ref: \"#/components/requestBodies/User\"\n responses:\n \"200\":\n $ref: \"#/components/responses/User\"\n get:\n tags:\n - User\n summary: Obtiene todos los mentores\n operationId: getAllMentors\n responses:\n \"200\":\n $ref: \"#/components/responses/UserList\"\n /user/{id}:\n get:\n tags:\n - User\n summary: Obtiene un usuario a partir de su id\n operationId: getUserById\n parameters:\n - name: id\n in: path\n description: Id del user\n required: true\n schema:\n type: string\n example: \"364256538056982528\"\n responses:\n \"200\":\n $ref: \"#/components/responses/User\"\n delete:\n tags:\n - User\n summary: Elimina un usuario a partir de su id\n operationId: deleteUserById\n parameters:\n - name: id\n in: path\n description: Id del user\n required: true\n schema:\n type: string\n example: \"364256538056982528\"\n responses:\n \"200\":\n $ref: \"#/components/responses/User\"\n put:\n tags:\n - User\n summary: Modifica un usuario a partir de su id\n operationId: updateUserById\n parameters:\n - name: id\n in: path\n description: Id del user\n required: true\n schema:\n type: string\n example: \"364256538056982528\"\n requestBody:\n $ref: \"#/components/requestBodies/User\"\n responses:\n \"200\":\n $ref: \"#/components/responses/User\"\n /user/activate/{id}:\n patch:\n tags:\n - User\n summary: Modifica el estado activo o inactivo de un usuario a partir de su id\n operationId: activateUserById\n parameters:\n - name: id\n in: path\n description: Id del user\n required: true\n schema:\n type: string\n example: \"364256538056982528\"\n requestBody:\n $ref: \"#/components/requestBodies/ActivateUser\"\n responses:\n \"200\":\n $ref: \"#/components/responses/User\"\n /warning:\n get:\n tags:\n - Warning\n summary: Obtiene todos los warnings o todos los warnings de un user\n operationId: getWarnings\n responses:\n \"200\":\n $ref: \"#/components/responses/WarningList\"\n \"400\":\n description: Invalid status value\n \"403\":\n $ref: \"#/components/responses/Forbidden\"\n\ncomponents:\n securitySchemes:\n ApiKeyAuth:\n type: apiKey\n in: header\n name: X-API-KEY\n responses:\n WarningList:\n description: Listado de warnings\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/WarningListResponse\"\n MentorshipList:\n description: Listado de mentorships\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/MentorshipListResponse\"\n TimeSlotList:\n description: Retorna los time slots del mentor\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/TimeSlotListResponse\"\n TimeSlot:\n description: Time slot\n User:\n description: User\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/UserRequest\"\n UserList:\n description: User\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/UserListResponse\"\n Forbidden:\n description: Forbidden\n content:\n application/json:\n schema:\n type: object\n properties:\n message:\n type: string\n enum:\n - Forbidden\n requestBodies:\n UpdateTimeSlotOccupationState:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/UpdateTimeSlotOccupationStateRequest\"\n UpdateTimeSlotAddMentee:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/UpdateTimeSlotAddMenteeRequest\"\n TimeSlot:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/TimeSlotRequest\"\n Mentorship:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/MentorshipRequest\"\n User:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/UserRequest\"\n ActivateUser:\n content:\n application/json:\n schema:\n $ref: \"#/components/schemas/ActivateUserRequest\"\n schemas:\n BasicTimeSlot:\n type: object\n properties:\n is_occupied:\n type: boolean\n date:\n type: number\n is_cancelled:\n type: boolean\n id:\n type: string\n format: uuid\n BasicMentorship:\n type: object\n required:\n - mentor_id\n - mentee_id\n - mentee_name\n - mentee_username_discord\n - mentee_email\n properties:\n mentor_id:\n type: string\n example: \"706602792005140532\"\n description: discord id\n mentee_id:\n type: string\n example: \"706602792005140532\"\n description: discord id\n mentee_name:\n type: string\n example: \"Santiago Santana\"\n mentee_username_discord:\n type: string\n example: \"Santiago Santana#2098\"\n mentee_email:\n type: string\n example: \"[email protected]\"\n info:\n type: string\n description: información adicional (opcional)\n example: \"Taba aburrido y me anoté\"\n MentorshipResponse:\n allOf:\n - $ref: '#/components/schemas/BasicMentorship'\n - type: object\n properties:\n id:\n type: string\n format: uuid\n example: \"af8cf24c-6cfe-4483-92d9-16873578f6d2\"\n mentorship_status:\n type: string\n enum:\n - CANCEL\n - ACTIVE\n - CONFIRMED\n example: CANCEL\n mentor_email:\n type: string\n example: \"[email protected]\"\n mentor_name:\n type: string\n example: \"Santiago Santana\"\n feedback_mentor:\n type: string\n feedback_mentee:\n type: string\n feedback_stars:\n type: number\n cancel_cause:\n type: string\n mentorship_token:\n type: string\n who_cancel:\n type: string\n enum:\n - MENTOR\n - MENTEE\n time_slot_info:\n $ref: '#/components/schemas/BasicTimeSlot'\n TimeSlotResponse:\n allOf:\n - $ref: '#/components/schemas/BasicTimeSlot'\n - type: object\n properties:\n mentorship_token:\n type: string\n user_id:\n type: string\n example: \"706602792005140532\"\n description: discord mentor id\n mentee_id:\n type: string\n example: \"706602792005140532\"\n description: discord mentee id\n mentee_username_discord:\n type: string\n example: \"Santiago Santana#2098\"\n MentorshipListResponse:\n type: object\n properties:\n message:\n type: string\n example: \"OK.\"\n data:\n type: array\n items:\n $ref: '#/components/schemas/MentorshipResponse'\n TimeSlotListResponse:\n type: object\n properties:\n message:\n type: string\n example: \"Success\"\n data:\n type: array\n items:\n $ref: '#/components/schemas/TimeSlotResponse'\n TimeSlotRequest:\n type: object\n required:\n - user_id\n - slot_date\n properties:\n user_id:\n type: number\n slot_date:\n description: ECMAScript epoch https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#the_ecmascript_epoch_and_timestamps\n type: number\n MentorshipRequest:\n allOf:\n - $ref: '#/components/schemas/BasicMentorship'\n - type: object\n required:\n - time_slot_id\n - time_slot_time\n properties:\n time_slot_id:\n type: string\n format: uuid\n time_slot_time:\n type: number\n description: Hora en utc-0\n UpdateTimeSlotOccupationStateRequest:\n type: object\n required:\n - is_occupied\n properties:\n is_occupied:\n type: boolean\n UpdateTimeSlotAddMenteeRequest:\n type: object\n required:\n - mentee_id\n - mentee_username\n - mentorship_token\n properties:\n mentee_id:\n type: string\n example: \"364256538056982528\"\n mentee_username:\n type: string\n example: \"Santiago Santana#2098\"\n mentorship_token:\n type: string\n example: \"ccb98c48-c03e-4091-acce-fa719f08bd4b\"\n UserRequest:\n type: object\n required:\n - id\n - discord_username\n - full_name\n - email\n - role\n properties:\n id:\n type: string\n example: \"364256538056982528\"\n discord_username:\n type: string\n example: \"Santiago Santana#2098\"\n full_name:\n type: string\n example: \"Santiago Santana\"\n about_me:\n type: string\n example: \"Meh\"\n email:\n type: string\n format: email\n example: \"[email protected]\"\n url_photo:\n type: string\n role:\n type: array\n items:\n type: string\n links:\n type: object\n properties:\n github:\n type: string\n twitter:\n type: string\n linkedin:\n type: string\n portfolio:\n type: string\n skills:\n type: array\n items:\n type: string\n ActivateUserRequest:\n type: object\n required:\n - user_status\n - modified_by\n properties:\n user_status:\n type: boolean\n modified_by:\n type: string\n UserListResponse:\n type: array\n items:\n $ref: \"#/components/schemas/UserRequest\"\n WarningResponse:\n type: object\n properties:\n id:\n type: string\n warning_date:\n type: number\n mentee_id:\n type: string\n mentee_name?:\n type: string\n mentor_name?:\n type: string\n warn_type:\n type: string\n enum:\n - NO_ASSIST\n - COC_WARN\n warn_cause:\n type: string\n mentorship_id:\n type: string\n warning_status:\n type: string\n enum:\n - ACTIVE\n - FORGIVE\n forgive_cause?:\n type: string\n warning_author_id:\n type: string\n warning_author_name:\n type: string\n WarningListResponse:\n type: array\n items:\n $ref: \"#/components/schemas/WarningResponse\"\n","contentType":"yaml","_type":"api_spec"},{"_id":"uts_09a5d059e3334431a6e2d6abd8400f03","parentId":"wrk_205ca41958af42c8b5a46f6f85147521","modified":1636158804160,"created":1636158804160,"name":"Calomentor","_type":"unit_test_suite"},{"_id":"env_env_4ae456d7fd6c8f87b3bc429346564a97fd2e7cfd_sub","parentId":"env_4ae456d7fd6c8f87b3bc429346564a97fd2e7cfd","modified":1645911114696,"created":1636158796235,"name":"AWS Dev Environment","data":{"scheme":"https","base_path":"/dev","host":"gnoqe5kho1.execute-api.sa-east-1.amazonaws.com","api_key":"","user_id":"364256538056982528","timeslot_id":"56899db6-2af5-4d30-a3f4-816c5d915c54"},"dataPropertyOrder":{"&":["scheme","base_path","host","api_key","user_id","timeslot_id"]},"color":null,"isPrivate":false,"metaSortKey":1636158796235,"_type":"environment"},{"_id":"env_5f8c9a01e4c44390b04678186952dc30","parentId":"env_4ae456d7fd6c8f87b3bc429346564a97fd2e7cfd","modified":1645910168036,"created":1636164022545,"name":"Localhost","data":{"scheme":"http","base_path":"/dev","host":"localhost:3001","api_key":"d41d8cd98f00b204e9800998ecf8427e","user_id":"364256538056982528a","timeslot_id":""},"dataPropertyOrder":{"&":["scheme","base_path","host","api_key","user_id","timeslot_id"]},"color":null,"isPrivate":false,"metaSortKey":1636164022545,"_type":"environment"},{"_id":"ut_8e945880d10b4b52a5a6628ee7624cb6","parentId":"uts_09a5d059e3334431a6e2d6abd8400f03","modified":1636311153968,"created":1636158819666,"requestId":"req_wrk_205ca41958af42c8b5a46f6f851475211938b83c","name":"Create Mentorship","code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);","_type":"unit_test"},{"_id":"ut_4a27a82b7d6d4a21ae91a87972694033","parentId":"uts_09a5d059e3334431a6e2d6abd8400f03","modified":1636468353597,"created":1636468353597,"requestId":null,"name":"Returns 200","code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);","_type":"unit_test"}]}