sun-pc-linux 4 days ago
parent
commit
3f2959b5eb
1 changed files with 35 additions and 15 deletions
  1. 35 15
      src/api/api.http

+ 35 - 15
src/api/api.http

@@ -12,9 +12,9 @@ Content-Type: application/json
 Authorization: Bearer xxx
 
 {
-    "loginName": "xxx",
-    "password": "xxx",
-    "role": "admin/student"
+    "loginName": "zhangsan",
+    "password": "123456",
+    "role": "student"
 }
 
 ### 
@@ -104,21 +104,41 @@ Authorization: Bearer xxx
 # 创建考核记录
 POST http://{{host}}/exam/history/create HTTP/1.1
 Content-Type: application/json
-Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjM1MzA5MzAsImlkIjoiNjY4YmFhODc0MGQwYWFiYjc1YTIwNjQ4Iiwib3JpZ19pYXQiOjE3MjI5MjYxMzB9.K3KYJipWSPYQbOayWBwqz1oasZrmsFf6Yh2kAt4btag
+Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzI1OTAwMDgsImlkIjoiNjczYmZjY2E3MjQyNWIxOGQxMmMyMzk0Iiwib3JpZ19pYXQiOjE3MzE5ODUyMDh9.PkGZwgFVONilDTPQ6f_Gc5t6NlbdC1DGiaScQtU_-2A
 
 
 {
-    "produceName": "xx",
-    "examRecord": [
-        {
-            "title":"xxxx",
-            "result": "正确",
-            "isCorrect": true,
-        }
-    ],
-    "totalScore": 93,
-    "correct": 18,
-    "mistake": 2
+	"produceName": "英语词汇测试",
+	"examRecord": [
+		{
+			"title": "单词拼写:Apple",
+			"result": "正确",
+			"isCorrect": true
+		},
+		{
+			"title": "单词拼写:Banana",
+			"result": "错误",
+			"isCorrect": false
+		},
+		{
+			"title": "单词拼写:Cat",
+			"result": "正确",
+			"isCorrect": true
+		},
+		{
+			"title": "单词拼写:Dog",
+			"result": "正确",
+			"isCorrect": true
+		},
+		{
+			"title": "单词拼写:Elephant",
+			"result": "错误",
+			"isCorrect": false
+		}
+	],
+	"totalScore": 85,
+	"correct": 13,
+	"mistake": 2
 }
 
 ###