-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNew_insomnia_tests.js
1 lines (1 loc) · 13 KB
/
New_insomnia_tests.js
1
{"_type":"export","__export_format":4,"__export_date":"2023-06-13T05:33:20.333Z","__export_source":"insomnia.desktop.app:v2023.1.0","resources":[{"_id":"req_4bbbdc5972d048b99fab1ef2dbfabe96","parentId":"fld_5522fa2f265541f29eb8a1491ddf90c9","modified":1686614458842,"created":1686607513351,"url":"{{baseurl}}/users","name":"Create User","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"test\",\n\t\"email\": \"[email protected]\",\n\t\"password\": \"PASSWORD\",\n\t\"role\": \"Instructor\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1686606882815,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_5522fa2f265541f29eb8a1491ddf90c9","parentId":"wrk_86e7b858b0d145d696d93a9cf70fdb40","modified":1686606892035,"created":1686606892035,"name":"User","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1686606892035,"_type":"request_group"},{"_id":"wrk_86e7b858b0d145d696d93a9cf70fdb40","parentId":null,"modified":1686597169218,"created":1686597160591,"name":"Main","description":"","scope":"collection","_type":"workspace"},{"_id":"req_2c75add98bab49d5af7099363495acb5","parentId":"fld_5522fa2f265541f29eb8a1491ddf90c9","modified":1686614465739,"created":1686609127898,"url":"{{baseurl}}/users/login","name":"Login","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"email\": \"[email protected]\",\n\t\"password\": \"parallelizethis\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1686606882765,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_096a4441a9e84ac2952bd1375d9c65b8","parentId":"fld_5522fa2f265541f29eb8a1491ddf90c9","modified":1686611962846,"created":1686611944339,"url":"{{baseurl}}/users/login","name":"Admin Login","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"email\": \"[email protected]\",\n\t\"password\": \"iamthebest\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1686606882740,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_05d83b5dcebb48f1a88bb6bcea8d275d","parentId":"fld_5522fa2f265541f29eb8a1491ddf90c9","modified":1686614479729,"created":1686613854251,"url":"{{baseurl}}/users/","name":"[DEBUG] get all users ","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686606882690,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_4998a8af68cb4cbe9480e7bb84c058c3","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686613905902,"created":1686597199355,"url":"{{baseurl}}/courses","name":"Create Course","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"subject\": \"CS\",\n\t\"number\": \"123\",\n\t\"title\": \"CS class\",\n\t\"term\": \"sp22\",\n\t\"instructorId\": \"6487a9553d6b68b71b7e7ed3\",\n\t\"students\": [ \n\t\t\"123\",\n\t\t\"234\",\n\t\t\"test\"\n\t]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NDg3YTk1NTNkNmI2OGI3MWI3ZTdlZDEiLCJuYW1lIjoiR29yZG9uICd0aGUgbnV0JyBSeWFuIiwiZW1haWwiOiJnZHJAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNjg2NjEyNTk1LCJleHAiOjE2ODY2OTg5OTV9.TSn_rBnfBLEFR2w57f5KWEtGjAUFLv9HfRdhKYDhW6k","disabled":false},"metaSortKey":-1686603060520.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_a93bf3f9b78b4c7081d50f519d717fd3","parentId":"wrk_86e7b858b0d145d696d93a9cf70fdb40","modified":1686606873595,"created":1686606873595,"name":"Course","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1686606873595,"_type":"request_group"},{"_id":"req_1367acbc5e0242db9e6644b770953ca7","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686606883127,"created":1686598565947,"url":"{{baseurl}}/courses","name":"Get All Courses","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686603060470.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_75cfa71aa9fa48ed808fbfedc403faca","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686627090252,"created":1686599928944,"url":"{{baseurl}}/courses/6487e28f1885a2c1b4212a7a","name":"Get course by ID","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686603060420.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c98f853d20aa41958ba2c21a1ca129d5","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686627223801,"created":1686627185762,"url":"{{baseurl}}/courses/debug","name":"[DEBUG] get all course info","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686603060395.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_dbea1a966faa4a1ea105595db114fdf2","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686630357316,"created":1686603046723,"url":"{{baseurl}}/courses/6487e28f1885a2c1b4212a7b","name":"Edit Course","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"subject\": \"MTH\",\n\t\"number\": \"251\",\n\t\"title\": \"Calc 2\"\n}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0ODdhOTU1M2Q2YjY4YjcxYjdlN2VkMyIsIm5hbWUiOiJNaWtlIEJhaWxleSIsImVtYWlsIjoibWJhaWxleUBvcmVnb25zdGF0ZS5lZHUiLCJyb2xlIjoiaW5zdHJ1Y3RvciIsImlhdCI6MTY4NjYxMzkxOCwiZXhwIjoxNjg2NzAwMzE4fQ.V_ZLPrFN53epUXsKXeqq-Zqq7DwGA8PiGbq3wjdQXIw","disabled":false},"metaSortKey":-1686603060370.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9b923304b6454979a12e3df1afa7e92b","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686606885373,"created":1686604822803,"url":"{{baseurl}}/courses/64878d5313a6258ef4ec113f","name":"New Request","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686603060320.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_da8872d9ec944865b4d74aaa3bba7dae","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686634039109,"created":1686634004031,"url":"{{baseurl}}/courses/6487fa3a118e29163982fb4f/roster","name":"Get Roster","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686603060314,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_d4da073636f3447a8297b2c153afbea7","parentId":"fld_b864687fc74441069fb8b5db3e4b35fe","modified":1686630887258,"created":1686628371004,"url":"{{baseurl}}/courses/6487e28f1885a2c1b4212a7c/students","name":"Add student to course","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"add\": [ \"6487e28f1885a2c1b4212a77\" ],\n\t\"remove\": [ ]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0ODdlMjhmMTg4NWEyYzFiNDIxMmE3MiIsIm5hbWUiOiJHb3Jkb24gJ3RoZSBudXQnIFJ5YW4iLCJlbWFpbCI6ImdkckBnbWFpbC5jb20iLCJyb2xlIjoiYWRtaW4iLCJpYXQiOjE2ODY2MjkxNzQsImV4cCI6MTY4NjcxNTU3NH0.fs75dj8dOeFYqqw6svxNsCovJIuozJCMKZG_SUfn1Nc","disabled":false},"metaSortKey":-1686628368297.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_b864687fc74441069fb8b5db3e4b35fe","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686628400937,"created":1686628361777,"name":"Students","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1686603060307.75,"_type":"request_group"},{"_id":"req_ab533a6209fb46799ba8a74d8dae757b","parentId":"fld_b864687fc74441069fb8b5db3e4b35fe","modified":1686630940654,"created":1686628368379,"url":"{{baseurl}}/courses/6487e28f1885a2c1b4212a7c/students","name":"Get students in course","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0ODdlMjhmMTg4NWEyYzFiNDIxMmE3NCIsIm5hbWUiOiJNaWtlIEJhaWxleSIsImVtYWlsIjoibWJhaWxleUBvcmVnb25zdGF0ZS5lZHUiLCJyb2xlIjoiaW5zdHJ1Y3RvciIsImlhdCI6MTY4NjYzMDU1NywiZXhwIjoxNjg2NzE2OTU3fQ.4LVm5mF8GTa_3Zvgt_93IwVtClzA0y1pHYN6zCcIYmI","disabled":false},"metaSortKey":-1686628368288.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_4677dedeaa1d4a709b3278fd025498da","parentId":"fld_b864687fc74441069fb8b5db3e4b35fe","modified":1686628489295,"created":1686628384770,"url":"{{baseurl}}/courses/6487e28f1885a2c1b4212a7a/roster","name":"Get roster","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1686628368279,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_8ccd226ce4f74a54b51f4e7de30be0ab","parentId":"fld_a93bf3f9b78b4c7081d50f519d717fd3","modified":1686633996249,"created":1686628394754,"url":"{{baseurl}}/courses/6487e28f1885a2c1b4212a7a/students","name":"Get assignments","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0ODdmYTNhMTE4ZTI5MTYzOTgyZmI0NyIsIm5hbWUiOiJHb3Jkb24gJ3RoZSBudXQnIFJ5YW4iLCJlbWFpbCI6ImdkckBnbWFpbC5jb20iLCJyb2xlIjoiYWRtaW4iLCJpYXQiOjE2ODY2MzMwNjgsImV4cCI6MTY4NjcxOTQ2OH0.sjeNiMDB8CgR9wgmg-v40che5wn-h6GSZ_vQXSnLGH8"},"metaSortKey":-1686603060295.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_fe5f0ce053189436eef6e24cd807fcc2f7a7fe75","parentId":"wrk_86e7b858b0d145d696d93a9cf70fdb40","modified":1686597217130,"created":1686597160598,"name":"Base Environment","data":{"baseurl":"http://localhost:8000"},"dataPropertyOrder":{"&":["baseurl"]},"color":null,"isPrivate":false,"metaSortKey":1686597160598,"_type":"environment"},{"_id":"jar_fe5f0ce053189436eef6e24cd807fcc2f7a7fe75","parentId":"wrk_86e7b858b0d145d696d93a9cf70fdb40","modified":1686597160601,"created":1686597160601,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_383df006e99c499181ccb51a346a7ff4","parentId":"wrk_86e7b858b0d145d696d93a9cf70fdb40","modified":1686597160593,"created":1686597160593,"fileName":"My Collection","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"uts_df508302a09641669d11ca3a7d026bb3","parentId":"wrk_86e7b858b0d145d696d93a9cf70fdb40","modified":1681868411443,"created":1681868411443,"name":"Example Test Suite","_type":"unit_test_suite"},{"_id":"uts_f01ddef1cc2843b882aef29af5784130","parentId":"wrk_86e7b858b0d145d696d93a9cf70fdb40","modified":1681868411443,"created":1681868411443,"name":"Example Test Suite","_type":"unit_test_suite"}]}