瀏覽代碼

rest client upload files

Michael Wang 4 年之前
父節點
當前提交
04249cad9e
共有 1 個文件被更改,包括 36 次插入2 次删除
  1. 36 2
      http-test/online-exam.http

+ 36 - 2
http-test/online-exam.http

@@ -7,8 +7,8 @@ Content-Type: application/json;charset=UTF-8
 "accountType":"STUDENT_CODE"}
 "accountType":"STUDENT_CODE"}
 
 
 
 
-@token = 53f112e9fadb4074a747e2e249dee000
-@key = U_S_109_53286
+@token = 3f162bf95e3f44ff81933a6f590bac32
+@key = U_S_0_2
 
 
 ###
 ###
 GET https://ecs-dev.qmth.com.cn:8878/api/exam_record/checkExam
 GET https://ecs-dev.qmth.com.cn:8878/api/exam_record/checkExam
@@ -83,5 +83,39 @@ Content-Type: application/json;charset=UTF-8
 Authorization: Basic ZXhhbWNsb3VkOmVjczg3ODYzNTc3IUAj
 Authorization: Basic ZXhhbWNsb3VkOmVjczg3ODYzNTc3IUAj
 x-list-order: desc
 x-list-order: desc
 
 
+### send files to offline exam 
+POST http://localhost:8080/api/branch_ecs_oe_admin/offlineExam/batchSubmitPaper
+Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
+token: {{token}}
+key: {{key}}
+
+------WebKitFormBoundary7MA4YWxkTrZu0gW
+Content-Disposition: form-data; name="examRecordDataId"
+
+5
+------WebKitFormBoundary7MA4YWxkTrZu0gW
+Content-Disposition: form-data; name="fileType"
+
+PDF
+------WebKitFormBoundary7MA4YWxkTrZu0gW
+Content-Disposition: form-data; name="fileArray"; filename="028_028D89193008_范佳帅_D26020011_1622184762435.pdf"
+Content-Type: application/pdf
+
+< /Users/michael/Downloads/028_028D89193008_范佳帅_D26020011_1622184762435.pdf
+------WebKitFormBoundary7MA4YWxkTrZu0gW
+Content-Disposition: form-data; name="fileMd5Array"
+
+75c1a6a555ae033e137689c8758a01d5
+------WebKitFormBoundary7MA4YWxkTrZu0gW
+Content-Disposition: form-data; name="fileArray"; filename="028_028D89193008_范佳帅_D26020011_1622184762435.pdf"
+Content-Type: application/pdf
+
+< /Users/michael/Downloads/028_028D89193008_范佳帅_D26020011_1622184762435.pdf
+------WebKitFormBoundary7MA4YWxkTrZu0gW
+Content-Disposition: form-data; name="fileMd5Array"
+
+75c1a6a555ae033e137689c8758a01d5
+------WebKitFormBoundary7MA4YWxkTrZu0gW--
+