-
Notifications
You must be signed in to change notification settings - Fork 0
/
insomnia.json
1 lines (1 loc) · 10 KB
/
insomnia.json
1
{"_type":"export","__export_format":4,"__export_date":"2021-02-17T15:44:03.742Z","__export_source":"insomnia.desktop.app:v2020.5.2","resources":[{"_id":"req_4a746e2bbd0f49e4bdea5eeb6887b5c3","parentId":"fld_c8ad3e7527654dbca7a15ea5b1e361d9","modified":1613494256633,"created":1613254476077,"url":"https://themis.housing.rug.nl/course/2020-2021/adinc-cs/labs/2-equations/part1","name":"view-assignment","description":"This is obviously just returns html, but you can extract the data you want from this HTML file with some XPath querys","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1613278691355,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_c8ad3e7527654dbca7a15ea5b1e361d9","parentId":"wrk_76f7ce63e94c46a59e974f70be76b898","modified":1613490291300,"created":1613277609340,"name":"upload/view assignment","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1613277609340,"_type":"request_group"},{"_id":"wrk_76f7ce63e94c46a59e974f70be76b898","parentId":null,"modified":1613253420435,"created":1613253420435,"name":"themis-rug","description":"","scope":null,"_type":"workspace"},{"_id":"req_7ddc117975694f91ab091b2e4f778c81","parentId":"fld_c8ad3e7527654dbca7a15ea5b1e361d9","modified":1613494252624,"created":1613278691305,"url":"https://themis.housing.rug.nl/submit/2020-2021/adinc-cs/labs/2-equations/part2","name":"upload-form","description":"`judgenow`: if set to `true` then it judges it instantly, if blank or `false` then the submission can be edited before it is judged","method":"POST","body":{"mimeType":"multipart/form-data","params":[{"name":"files[]","value":"","description":"","id":"pair_fee9d9a3801e4e6cb85e36bd6951fadb","type":"file","fileName":"/home/exile/Documents/RUG - assignments/Algorithms and Data Structures for CS/2 - solving equations/Part 1: recognizing/2equations/recog"},{"name":"judgenow","value":"false","description":"","id":"pair_c6f4ab5c52ec49e994cf6859e8567d54"}]},"parameters":[],"headers":[{"name":"Content-Type","value":"multipart/form-data","id":"pair_f392a1b8c00c4d62a22afeecd1ec8d7f"}],"authentication":{},"metaSortKey":-1613278691305,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_7f49a66322334202893b36f8e9e5acd5","parentId":"fld_c8ad3e7527654dbca7a15ea5b1e361d9","modified":1613576528124,"created":1613276621009,"url":"https://themis.housing.rug.nl/stats/2020-2021/adinc-cs/labs/2-equations/part1","name":"view-assignment-status","description":"This is obviously just returns html, but you can extract the data you want from this HTML file with some XPath querys, like:\n\n`/html/body/div/div[2]/section[1]/div[2]/div/div[1]/div[2]/div/div[3]/span[2]/strong`\n\nIf it returns `passed` then every case passed.\n\nIf it returns `diff` then some cases did not pass.\n\nIf it returns `compilerr` then there was a compiler error.\n\nIf it returns `pending` then it is yet to be judged. \n\n","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1613278691255,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9b73dbba7c2142f18fcb4104f34e2c93","parentId":"fld_2bf6b555f98646708001c80abc4ac1ef","modified":1613491050873,"created":1613254340360,"url":"https://themis.housing.rug.nl/course","name":"course","description":"This is obviously just returns html, but you can extract the 'year' (so the first avaiable) URL from this HTML file with XPath using: `//ul[@class='nav-list'][1]/li[1]/span[@class='ass-link'][1]/a/@title` (will return just one) in this case this would (as of writing this) return `/2020-2021`","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1613254476127,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_2bf6b555f98646708001c80abc4ac1ef","parentId":"wrk_76f7ce63e94c46a59e974f70be76b898","modified":1613254400559,"created":1613254400559,"name":"navigate themis html","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1613254400559,"_type":"request_group"},{"_id":"req_60a37fca9f7d4d39bc1033d54bf05631","parentId":"fld_2bf6b555f98646708001c80abc4ac1ef","modified":1613491060547,"created":1613254421366,"url":"https://themis.housing.rug.nl/course/2020-2021/","name":"2020-2021","description":"This is obviously just returns html, but you can extract the available URLs from this HTML file with XPath using: `//ul[@class='nav-list']/li/span[@class='ass-link'][1]/a/@title` (this will return multiple)\n\nand if you want the top one you do:\n`//ul[@class='nav-list'][1]/li[1]/span[@class='ass-link'][1]/a/@title` (returns a single url) in this case this would (as of writing this) return `/2020-2021/practiceIP` \n\nand for the second top one:\n`//ul[@class='nav-list'][1]/li[2]/span[@class='ass-link'][1]/a/@title` in this case this would return `/2020-2021/adinc-ai`","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1613254476102,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_5b60e7e54e924526aaa9c5b50565c922","parentId":"wrk_76f7ce63e94c46a59e974f70be76b898","modified":1613491349249,"created":1613253904187,"url":"https://themis.housing.rug.nl/log/in","name":"login","description":"Will return a cookie named `session` so that you will stay logged in if you use this cookie for each further request.","method":"POST","body":{"mimeType":"application/x-www-form-urlencoded","params":[{"name":"user","value":"s1234567","description":"","id":"pair_d8b54f4f186c4cfe976791d757a604b2"},{"name":"password","value":"changeme","description":"","id":"pair_2dd0d4c0c1aa41938f7a338e9e7b2f3c"},{"name":"","value":"","description":"","id":"pair_eeccef5751c84df38949c45d75e7f9d6"}]},"parameters":[],"headers":[{"name":"Content-Type","value":"application/x-www-form-urlencoded","id":"pair_8ab2b73aff9642b180f60f4596ea9e21"}],"authentication":{},"metaSortKey":-1613253904187,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_afa8e0a66ad14ea7a483cc91232f8a69","parentId":"wrk_76f7ce63e94c46a59e974f70be76b898","modified":1613491245240,"created":1613257722446,"url":"https://themis.housing.rug.nl/log/out","name":"logout","description":"Will log you out, so you will have to obtain a new `session` cookie by logging back in.","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1613253904137,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_0e667df0e95f4cdfa70fb8f78100d1d2728b3c13","parentId":"wrk_76f7ce63e94c46a59e974f70be76b898","modified":1613254681206,"created":1613253420485,"name":"Base Environment","data":{"base_url":"{{ protocol }}://{{ domain }}","protocol":"https","domain":"themis.housing.rug.nl","username":"s12345","password":"changeme"},"dataPropertyOrder":{"&":["base_url","protocol","domain","username","password"]},"color":null,"isPrivate":false,"metaSortKey":1613253420485,"_type":"environment"},{"_id":"jar_0e667df0e95f4cdfa70fb8f78100d1d2728b3c13","parentId":"wrk_76f7ce63e94c46a59e974f70be76b898","modified":1613576605151,"created":1613253420486,"name":"Default Jar","cookies":[{"key":"session","value":"somelongvaluethatiamnotgonnasharepublicly","expires":1613577653000,"domain":"themis.housing.rug.nl","path":"/","secure":true,"httpOnly":true,"hostOnly":true,"creation":"2021-02-16T15:58:13.636Z","lastAccessed":"2021-02-16T16:00:53.209Z","id":"7041570950481706"}],"_type":"cookie_jar"},{"_id":"spc_90c3326e858f4357aaf6b5aa62bc57a6","parentId":"wrk_76f7ce63e94c46a59e974f70be76b898","modified":1613253420440,"created":1613253420440,"fileName":"themis-rug","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"env_8867eadec30a4d9eabe6f0fad48ab976","parentId":"env_0e667df0e95f4cdfa70fb8f78100d1d2728b3c13","modified":1613576557863,"created":1613253497398,"name":"themis","data":{"base_url":"{{ protocol }}://{{ domain }}","protocol":"https","domain":"themis.housing.rug.nl","email":"[email protected]","password":"changeme","request_url":"{% response 'url', 'req_5b60e7e54e924526aaa9c5b50565c922', 'b64::::46b', 'never', 60 %}","year_url":"{% response 'body', 'req_9b73dbba7c2142f18fcb4104f34e2c93', 'b64::Ly91bFtAY2xhc3M9J25hdi1saXN0J11bMV0vbGlbMV0vc3BhbltAY2xhc3M9J2Fzcy1saW5rJ11bMV0vYS9AdGl0bGU=::46b', 'never', 60 %}","assignment-status":"{% response 'body', 'req_7f49a66322334202893b36f8e9e5acd5', 'b64::L2h0bWwvYm9keS9kaXYvZGl2WzJdL3NlY3Rpb25bMV0vZGl2WzJdL2Rpdi9kaXZbMV0vZGl2WzJdL2Rpdi9kaXZbM10vc3BhblsyXS9zdHJvbmc=::46b', 'never', 60 %}","top_url":"{% response 'body', 'req_60a37fca9f7d4d39bc1033d54bf05631', 'b64::Ly91bFtAY2xhc3M9J25hdi1saXN0J11bMV0vbGlbMl0vc3BhbltAY2xhc3M9J2Fzcy1saW5rJ11bMV0vYS9AdGl0bGU=::46b', 'never', 60 %}","all_urls":"{% response 'body', 'req_60a37fca9f7d4d39bc1033d54bf05631', 'b64::Ly91bFtAY2xhc3M9J25hdi1saXN0J10vbGkvc3BhbltAY2xhc3M9J2Fzcy1saW5rJ11bMV0vYS9AdGl0bGU=::46b', 'never', 60 %}"},"dataPropertyOrder":{"&":["base_url","protocol","domain","email","password","request_url","year_url","assignment-status","top_url","all_urls"]},"color":"#7d69cb","isPrivate":false,"metaSortKey":1613253497398,"_type":"environment"}]}