online-exam.http 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. POST https://ecs-dev.qmth.com.cn:8878/api/ecs_core/auth/login
  2. Content-Type: application/json;charset=UTF-8
  3. {"domain":"ecs-dev.qmth.com.cn",
  4. "accountValue":"20180613",
  5. "password":"180613",
  6. "accountType":"STUDENT_CODE"}
  7. @token = 3f162bf95e3f44ff81933a6f590bac32
  8. @key = U_S_0_2
  9. ###
  10. GET https://ecs-dev.qmth.com.cn:8878/api/exam_record/checkExam
  11. token: {{token}}
  12. key: {{key}}
  13. ###
  14. GET https://ecs-dev.qmth.com.cn:8878/api/online_exam_course
  15. token: {{token}}
  16. key: {{key}}
  17. ###
  18. GET https://ecs-dev.qmth.com.cn:8878/api/online_exam_course/currentTime
  19. token: {{token}}
  20. key: {{key}}
  21. ###
  22. GET https://ecs-dev.qmth.com.cn:8878/api/ecs_core/org/logo?domain=ecs-dev.qmth.com.cn
  23. ###
  24. GET https://ecs-dev.qmth.com.cn:8878/api/ecs_core/org/getRootOrgByCode?code=ecs-dev.qmth.com.cn
  25. ### 考试信息
  26. GET https://ecs-dev.qmth.com.cn:8878/api/ecs_exam_work/exam/153
  27. token: {{token}}
  28. key: {{key}}
  29. ### 开始考试
  30. GET https://ecs-dev.qmth.com.cn:8878/api/exam_control/start?stu_exam_info_id=194505112781
  31. token: {{token}}
  32. key: {{key}}
  33. ### 结束考试(交卷)
  34. GET https://ecs-dev.qmth.com.cn:8878/api/exam_control/submit
  35. token: {{token}}
  36. key: {{key}}
  37. ### heartbeat
  38. GET https://ecs-dev.qmth.com.cn:8878/api/exam_control/heartbeat
  39. token: {{token}}
  40. key: {{key}}
  41. ### exam_question
  42. GET https://ecs-dev.qmth.com.cn:8878/api/exam_question/?exam_record_id=101536
  43. token: {{token}}
  44. key: {{key}}
  45. ### question
  46. GET https://ecs-dev.qmth.com.cn:8878/api/exam_question/3086506
  47. token: {{token}}
  48. key: {{key}}
  49. ### question
  50. GET https://ecs-dev.qmth.com.cn:8878/api/exam_question/question/?question_id=5b69024e0fe2d242219a191b
  51. token: {{token}}
  52. key: {{key}}
  53. ### answer question
  54. PUT http://localhost:8080/api/exam_question/3088073
  55. Content-Type: application/json;charset=UTF-8
  56. token: {{token}}
  57. key: {{key}}
  58. {"studentAnswer": "C"}
  59. ### get upyun photo folder
  60. GET https://v0.api.upyun.com/exam-cloud/capture_photo/38156/
  61. Content-Type: application/json;charset=UTF-8
  62. Authorization: Basic ZXhhbWNsb3VkOmVjczg3ODYzNTc3IUAj
  63. x-list-order: desc
  64. ### send files to offline exam
  65. POST http://localhost:8080/api/branch_ecs_oe_admin/offlineExam/batchSubmitPaper
  66. Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
  67. token: {{token}}
  68. key: {{key}}
  69. ------WebKitFormBoundary7MA4YWxkTrZu0gW
  70. Content-Disposition: form-data; name="examRecordDataId"
  71. 5
  72. ------WebKitFormBoundary7MA4YWxkTrZu0gW
  73. Content-Disposition: form-data; name="fileType"
  74. PDF
  75. ------WebKitFormBoundary7MA4YWxkTrZu0gW
  76. Content-Disposition: form-data; name="fileArray"; filename="028_028D89193008_范佳帅_D26020011_1622184762435.pdf"
  77. Content-Type: application/pdf
  78. < /Users/michael/Downloads/028_028D89193008_范佳帅_D26020011_1622184762435.pdf
  79. ------WebKitFormBoundary7MA4YWxkTrZu0gW
  80. Content-Disposition: form-data; name="fileMd5Array"
  81. 75c1a6a555ae033e137689c8758a01d5
  82. ------WebKitFormBoundary7MA4YWxkTrZu0gW
  83. Content-Disposition: form-data; name="fileArray"; filename="028_028D89193008_范佳帅_D26020011_1622184762435.pdf"
  84. Content-Type: application/pdf
  85. < /Users/michael/Downloads/028_028D89193008_范佳帅_D26020011_1622184762435.pdf
  86. ------WebKitFormBoundary7MA4YWxkTrZu0gW
  87. Content-Disposition: form-data; name="fileMd5Array"
  88. 75c1a6a555ae033e137689c8758a01d5
  89. ------WebKitFormBoundary7MA4YWxkTrZu0gW--