POST api/questionnaire/saveresults
批量保存问卷结果(同一用户,同一题目仅允许提交一次)
Request Information
URI Parameters
None.
Body Parameters
问卷结果
QstResultSetDtoName | Description | Type | Additional information |
---|---|---|---|
QstId |
问卷编号 |
integer |
None. |
qrds |
问卷结果集合 |
Collection of QstResultDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "QstId": 1, "qrds": [ { "QstSubId": 1, "QstId": 2, "QstTypeId": 3, "Result": "sample string 4", "Duration": 5 }, { "QstSubId": 1, "QstId": 2, "QstTypeId": 3, "Result": "sample string 4", "Duration": 5 } ] }
text/html
Sample:
{"QstId":1,"qrds":[{"QstSubId":1,"QstId":2,"QstTypeId":3,"Result":"sample string 4","Duration":5},{"QstSubId":1,"QstId":2,"QstTypeId":3,"Result":"sample string 4","Duration":5}]}
application/xml, text/xml
Sample:
<QstResultSetDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <QstId>1</QstId> <qrds> <QstResultDto> <Duration>5</Duration> <QstId>2</QstId> <QstSubId>1</QstSubId> <QstTypeId>3</QstTypeId> <Result>sample string 4</Result> </QstResultDto> <QstResultDto> <Duration>5</Duration> <QstId>2</QstId> <QstSubId>1</QstSubId> <QstTypeId>3</QstTypeId> <Result>sample string 4</Result> </QstResultDto> </qrds> </QstResultSetDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
批量保存问卷结果(同一用户,同一题目仅允许提交一次)
JsonRtnDtoOfBooleanName | Description | Type | Additional 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});