Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
adventrain_backend/adventrain_dev.json
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1117 lines (1117 sloc)
18.8 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "147e0312-6af8-46e5-8637-3b65e8ef5517", | |
"name": "adventrain - dev", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Get Assigned", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "" | |
}, | |
"url": { | |
"raw": "{{hostname}}/assigned/?id=sunnytest3", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"assigned", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "sunnytest3" | |
} | |
] | |
}, | |
"description": "post request for creating a test" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Username Check", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/check/?id=sunnytest3", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"check", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "sunnytest3" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Hash", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/hash/?user=user1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"hash", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "user", | |
"value": "user1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Due Date", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/due/?id=sunnytest3", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"due", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "sunnytest3" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Grps", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/grps/?id=sunnytest3", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"grps", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "sunnytest3" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Salt", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/salt/?user=sunnytest3", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"salt", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "user", | |
"value": "sunnytest3" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Own Group", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/own_grp/?id=user1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"own_grp", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "user1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Own Test", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/own_test/?id=user1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"own_test", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "user1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Test", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/testing/?id=1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"testing", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get User in Group", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/get_usr_in_grp/?id=1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"get_usr_in_grp", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Group Assigned", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/grp_assigned/?id=1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"grp_assigned", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Progress", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/progress/?id=sunny&test_id=3", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"progress", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "sunny" | |
}, | |
{ | |
"key": "test_id", | |
"value": "3" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Group Progress", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/group_progress/?test_id=1&grp_id=1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"group_progress", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "test_id", | |
"value": "1" | |
}, | |
{ | |
"key": "grp_id", | |
"value": "1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get Member Progress", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/member_progress/?id=user1&grp_id=1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"member_progress", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "user1" | |
}, | |
{ | |
"key": "grp_id", | |
"value": "1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get User Pending", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/user_pending/?id=user1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"user_pending", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "user1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Accept Pending", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/accept_pending/?id=user1&grp_id=1", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"accept_pending", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "user1" | |
}, | |
{ | |
"key": "grp_id", | |
"value": "1" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create Test", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"creator_id\":\"sunny\", \"training_data\":\"{}\", \"flashcards\":\"{}\", \"questions\":\"{}\", \"test_name\":\"sunnt test\"}" | |
}, | |
"url": { | |
"raw": "{{hostname}}/create_test/", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"create_test", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create User", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"f_name\":\"sunny\", \"l_name\":\"sarker\", \"user_id\":\"sunnysar46\",\"email\":\".sarler@uconn.edu\", \"hash\":\"ihfheifho\", \"salt\":\"weu93ur\"}" | |
}, | |
"url": { | |
"raw": "{{hostname}}/create_user/", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"create_user", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Send Progress", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"user_id\":\"sunny34434\", \"test_id\":\"3\", \"progress_info\":\"{}\"}" | |
}, | |
"url": { | |
"raw": "{{hostname}}/send_progress/", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"send_progress", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create Progress", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"user_id\":\"snny34\", \"test_id\":\"3\", \"progress_info\":\"{}\"}", | |
"options": { | |
"raw": { | |
"language": "text" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{hostname}}/create_progress/", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"create_progress", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Assign to Groups", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"grp_id\":\"1\", \"test_id\":\"3\", \"due_date\":\"2021-22-22\"}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{hostname}}/assign_to_grps/", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"assign_to_grps", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create Group", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"grp_name\":\"idk\", \"grp_owner\":\"user2345\"}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "{{hostname}}/create_group/", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"create_group", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Add to Groups", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"user_id\":\"idk\", \"grp_id\":\"25\"}" | |
}, | |
"url": { | |
"raw": "{{hostname}}/add_to_grps/", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"add_to_grps", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Make Admin", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"id\":\"user3\",\"grp_id\":\"19\"}" | |
}, | |
"url": { | |
"raw": "{{hostname}}/make_admin/", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"make_admin", | |
"" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Remove Group", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "" | |
}, | |
"url": { | |
"raw": "{{hostname}}/remove_grp/?grp_id=45", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"remove_grp", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "grp_id", | |
"value": "45" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Remove Test From Group", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/remove_test_grp/?grp_id=45&test_id=345", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"remove_test_grp", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "grp_id", | |
"value": "45" | |
}, | |
{ | |
"key": "test_id", | |
"value": "345" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Remove User from Group", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/remove_usr_grp/?grp_id=2355&id=user232434", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"remove_usr_grp", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "grp_id", | |
"value": "2355" | |
}, | |
{ | |
"key": "id", | |
"value": "user232434" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Remove User", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/remove_user/?id=user243434", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"remove_user", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "user243434" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Remove Test", | |
"event": [ | |
{ | |
"listen": "test", | |
"script": { | |
"exec": [ | |
"pm.test(\"Status test\", function () {\r", | |
" pm.response.to.have.status(200);\r", | |
"});" | |
], | |
"type": "text/javascript" | |
} | |
} | |
], | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"url": { | |
"raw": "{{hostname}}/remove_test/?test_id=234566", | |
"host": [ | |
"{{hostname}}" | |
], | |
"path": [ | |
"remove_test", | |
"" | |
], | |
"query": [ | |
{ | |
"key": "test_id", | |
"value": "234566" | |
} | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} |