POST api/selftestwrongsets/updatemarktest

更新自测

Request Information

URI Parameters

None.

Body Parameters

UpdateSelfTestDto
NameDescriptionTypeAdditional information
SelfTestRecordId

记录编号

integer

None.

MarkTest

标记试题

Collection of MarkTest

None.

IsEnd

标记结束

boolean

None.

DidNotAnswer

未作答数量 (当标记为结束时,需要提供未作答数量)

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SelfTestRecordId": 1,
  "MarkTest": [
    {
      "TestId": "dc51aef2-4717-4d0e-9bb8-bb88323e541f",
      "Answer": "sample string 2",
      "TestMark": 1
    },
    {
      "TestId": "dc51aef2-4717-4d0e-9bb8-bb88323e541f",
      "Answer": "sample string 2",
      "TestMark": 1
    }
  ],
  "IsEnd": true,
  "DidNotAnswer": 3
}

text/html

Sample:
{"SelfTestRecordId":1,"MarkTest":[{"TestId":"dc51aef2-4717-4d0e-9bb8-bb88323e541f","Answer":"sample string 2","TestMark":1},{"TestId":"dc51aef2-4717-4d0e-9bb8-bb88323e541f","Answer":"sample string 2","TestMark":1}],"IsEnd":true,"DidNotAnswer":3}

application/xml, text/xml

Sample:
<UpdateSelfTestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <DidNotAnswer>3</DidNotAnswer>
  <IsEnd>true</IsEnd>
  <MarkTest>
    <MarkTest>
      <Answer>sample string 2</Answer>
      <TestId>dc51aef2-4717-4d0e-9bb8-bb88323e541f</TestId>
      <TestMark>正确</TestMark>
    </MarkTest>
    <MarkTest>
      <Answer>sample string 2</Answer>
      <TestId>dc51aef2-4717-4d0e-9bb8-bb88323e541f</TestId>
      <TestMark>正确</TestMark>
    </MarkTest>
  </MarkTest>
  <SelfTestRecordId>1</SelfTestRecordId>
</UpdateSelfTestDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

更新自测

JsonRtnDtoOfBoolean
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": true
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":true}

application/xml, text/xml

Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data>true</Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfboolean>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});