POST api/ExamTask/SaveExamTask

保存试卷任务

Request Information

URI Parameters

None.

Body Parameters

ExamTaskInputDto
NameDescriptionTypeAdditional information
Id

任务编号

integer

None.

ProfessionalId

课程编号

integer

None.

TaskName

任务名称

string

Max length: 50

PaperClassify

当前任务创建的试卷类型

PaperClassify

None.

TaskDescription

任务要求

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProfessionalId": 2,
  "TaskName": "sample string 3",
  "PaperClassify": 1,
  "TaskDescription": "sample string 4"
}

text/html

Sample:
{"Id":1,"ProfessionalId":2,"TaskName":"sample string 3","PaperClassify":1,"TaskDescription":"sample string 4"}

application/xml, text/xml

Sample:
<ExamTaskInputDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Id>1</Id>
  <PaperClassify>NetworkExam</PaperClassify>
  <ProfessionalId>2</ProfessionalId>
  <TaskDescription>sample string 4</TaskDescription>
  <TaskName>sample string 3</TaskName>
</ExamTaskInputDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存试卷任务

JsonRtnDtoOfExamTask
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

ExamTask

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "ExamTaskSteps": [
      {
        "Id": 1,
        "TaskStepName": "sample string 2",
        "TaskStepRequirements": "sample string 3",
        "ResponseId": "sample string 4",
        "ResponseInfo": "sample string 5",
        "ExamTaskStepAction": 1,
        "EndTime": "2024-09-25T00:08:03.7345955+08:00",
        "Executor": "sample string 6",
        "ExecutorName": "sample string 7",
        "ExecutorAction": "sample string 8",
        "ExamTaskStepStatus": 0,
        "TaskStepStatus": "未开始",
        "ExamTaskId": 9,
        "Sort": 10,
        "CompletionTime": "2024-09-25T00:08:03.7345955+08:00",
        "CreatedTime": "2024-09-25T00:08:03.7345955+08:00",
        "FeedBack": "sample string 12"
      },
      {
        "Id": 1,
        "TaskStepName": "sample string 2",
        "TaskStepRequirements": "sample string 3",
        "ResponseId": "sample string 4",
        "ResponseInfo": "sample string 5",
        "ExamTaskStepAction": 1,
        "EndTime": "2024-09-25T00:08:03.7345955+08:00",
        "Executor": "sample string 6",
        "ExecutorName": "sample string 7",
        "ExecutorAction": "sample string 8",
        "ExamTaskStepStatus": 0,
        "TaskStepStatus": "未开始",
        "ExamTaskId": 9,
        "Sort": 10,
        "CompletionTime": "2024-09-25T00:08:03.7345955+08:00",
        "CreatedTime": "2024-09-25T00:08:03.7345955+08:00",
        "FeedBack": "sample string 12"
      }
    ],
    "Id": 1,
    "ProfessionalId": 2,
    "TaskName": "sample string 3",
    "TaskDescription": "sample string 4",
    "CreatedUserId": 5,
    "PaperClassify": 1,
    "CreatedUserName": "sample string 6",
    "CreatedTime": "2024-09-25T00:08:03.7345955+08:00",
    "IsPublish": true
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"ExamTaskSteps":[{"Id":1,"TaskStepName":"sample string 2","TaskStepRequirements":"sample string 3","ResponseId":"sample string 4","ResponseInfo":"sample string 5","ExamTaskStepAction":1,"EndTime":"2024-09-25T00:08:03.7345955+08:00","Executor":"sample string 6","ExecutorName":"sample string 7","ExecutorAction":"sample string 8","ExamTaskStepStatus":0,"TaskStepStatus":"未开始","ExamTaskId":9,"Sort":10,"CompletionTime":"2024-09-25T00:08:03.7345955+08:00","CreatedTime":"2024-09-25T00:08:03.7345955+08:00","FeedBack":"sample string 12"},{"Id":1,"TaskStepName":"sample string 2","TaskStepRequirements":"sample string 3","ResponseId":"sample string 4","ResponseInfo":"sample string 5","ExamTaskStepAction":1,"EndTime":"2024-09-25T00:08:03.7345955+08:00","Executor":"sample string 6","ExecutorName":"sample string 7","ExecutorAction":"sample string 8","ExamTaskStepStatus":0,"TaskStepStatus":"未开始","ExamTaskId":9,"Sort":10,"CompletionTime":"2024-09-25T00:08:03.7345955+08:00","CreatedTime":"2024-09-25T00:08:03.7345955+08:00","FeedBack":"sample string 12"}],"Id":1,"ProfessionalId":2,"TaskName":"sample string 3","TaskDescription":"sample string 4","CreatedUserId":5,"PaperClassify":1,"CreatedUserName":"sample string 6","CreatedTime":"2024-09-25T00:08:03.7345955+08:00","IsPublish":true}}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"ExamTaskSteps":[{"Id":1,"TaskStepName":"sample string 2","TaskStepRequirements":"sample string 3","ResponseId":"sample string 4","ResponseInfo":"sample string 5","ExamTaskStepAction":1,"EndTime":"2024-09-25T00:08:03.7345955+08:00","Executor":"sample string 6","ExecutorName":"sample string 7","ExecutorAction":"sample string 8","ExamTaskStepStatus":0,"TaskStepStatus":"已超时","ExamTaskId":9,"Sort":10,"CompletionTime":"2024-09-25T00:08:03.7345955+08:00","CreatedTime":"2024-09-25T00:08:03.7345955+08:00","FeedBack":"sample string 12"},{"Id":1,"TaskStepName":"sample string 2","TaskStepRequirements":"sample string 3","ResponseId":"sample string 4","ResponseInfo":"sample string 5","ExamTaskStepAction":1,"EndTime":"2024-09-25T00:08:03.7345955+08:00","Executor":"sample string 6","ExecutorName":"sample string 7","ExecutorAction":"sample string 8","ExamTaskStepStatus":0,"TaskStepStatus":"已超时","ExamTaskId":9,"Sort":10,"CompletionTime":"2024-09-25T00:08:03.7345955+08:00","CreatedTime":"2024-09-25T00:08:03.7345955+08:00","FeedBack":"sample string 12"}],"Id":1,"ProfessionalId":2,"TaskName":"sample string 3","TaskDescription":"sample string 4","CreatedUserId":5,"PaperClassify":1,"CreatedUserName":"sample string 6","CreatedTime":"2024-09-25T00:08:03.7345955+08:00","IsPublish":true}});