POST {version}/Question/CreateExamPaper

提交答案

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

提交答案

MyExamDto
NameDescriptionTypeAdditional information
SubjectId

科目(考点)编码

string

None.

Score

分数

integer

None.

Options

试题选项

Object

None.

Request Formats

application/json, text/json

Sample:
{
  "SubjectId": "sample string 1",
  "Score": 2,
  "Options": {}
}

application/xml, text/xml

Sample:
<MyExamDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eshikao.Models.Question">
  <Options />
  <Score>2</Score>
  <SubjectId>sample string 1</SubjectId>
</MyExamDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MyExamDto'.

Response Information

Resource Description

返回当前试卷批次编码

ApiResultOfInt32
NameDescriptionTypeAdditional information
Code

string

None.

Message

string

None.

Data

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Message": "sample string 2",
  "Data": 3
}

application/xml, text/xml

Sample:
<ApiResultOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TinyFx.Web.Results">
  <Code>sample string 1</Code>
  <Data>3</Data>
  <Message>sample string 2</Message>
</ApiResultOfint>