POST api/QSA/Popup

错题本--弹窗

Request Information

URI Parameters

None.

Body Parameters

弹窗请求

PopupDto
NameDescriptionTypeAdditional information
ques_id

试题id集

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ques_id": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<PopupDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.ElModels">
  <ques_id xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ques_id>
</PopupDto>

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 'PopupDto'.

Response Information

Resource Description

BaseOut
NameDescriptionTypeAdditional information
errcode

错误编码 2:error 401:鉴权失败;200:成功;500:内部错误;

ErrCode

None.

message

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 2,
  "message": "sample string 1"
}

application/xml, text/xml

Sample:
<BaseOut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.HrWxModels">
  <errcode>Error</errcode>
  <message>sample string 1</message>
</BaseOut>