POST api/answer/replyset

答案提交接口

Request Information

URI Parameters

None.

Body Parameters

答案集合

AnswerSetDto
NameDescriptionTypeAdditional information
ExamId

习题编号

globally unique identifier

None.

AnswerSet

答案集合

Collection of AnswerMiniDto

None.

Request Formats

application/json, text/json

Sample:
{
  "ExamId": "5b16c99f-13d2-418b-bab7-da50ebc953a9",
  "AnswerSet": [
    {
      "AnswerInfo": "sample string 1",
      "TestId": "8336a9e9-1228-4132-8f3f-daa55da09e7e"
    },
    {
      "AnswerInfo": "sample string 1",
      "TestId": "8336a9e9-1228-4132-8f3f-daa55da09e7e"
    }
  ]
}

text/html

Sample:
{"ExamId":"5b16c99f-13d2-418b-bab7-da50ebc953a9","AnswerSet":[{"AnswerInfo":"sample string 1","TestId":"8336a9e9-1228-4132-8f3f-daa55da09e7e"},{"AnswerInfo":"sample string 1","TestId":"8336a9e9-1228-4132-8f3f-daa55da09e7e"}]}

application/xml, text/xml

Sample:
<AnswerSetDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <AnswerSet>
    <AnswerMiniDto>
      <AnswerInfo>sample string 1</AnswerInfo>
      <TestId>8336a9e9-1228-4132-8f3f-daa55da09e7e</TestId>
    </AnswerMiniDto>
    <AnswerMiniDto>
      <AnswerInfo>sample string 1</AnswerInfo>
      <TestId>8336a9e9-1228-4132-8f3f-daa55da09e7e</TestId>
    </AnswerMiniDto>
  </AnswerSet>
  <ExamId>5b16c99f-13d2-418b-bab7-da50ebc953a9</ExamId>
</AnswerSetDto>

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});