POST api/questionnaire/save
保存问卷
Request Information
URI Parameters
None.
Body Parameters
主题实体
QuestionnaireDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
问卷编号(当传入该编号则表示修改该问卷) |
integer |
None. |
CourseId |
课程编号 |
globally unique identifier |
None. |
QuestionnaireName |
问卷名称 |
string |
None. |
QuestionnaireDescription |
问卷问明 |
string |
None. |
BeginTime |
开始时间 为null 时不表示不限 |
date |
None. |
EndTime |
开始时间 为null 时不表示不限 |
date |
None. |
MaxLen |
截止日期前收集满 MaxLen 时停止 |
integer |
None. |
Anonymity |
匿名问卷 |
boolean |
None. |
PubReport |
公开报告 |
boolean |
None. |
Necessary |
必答问卷 |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "CourseId": "5547ded6-9612-40bb-9de1-da1a39cb8831", "QuestionnaireName": "sample string 3", "QuestionnaireDescription": "sample string 4", "BeginTime": "2024-09-25T00:04:59.1239222+08:00", "EndTime": "2024-09-25T00:04:59.1239222+08:00", "MaxLen": 5, "Anonymity": true, "PubReport": true, "Necessary": true }
text/html
Sample:
{"Id":1,"CourseId":"5547ded6-9612-40bb-9de1-da1a39cb8831","QuestionnaireName":"sample string 3","QuestionnaireDescription":"sample string 4","BeginTime":"2024-09-25T00:04:59.1239222+08:00","EndTime":"2024-09-25T00:04:59.1239222+08:00","MaxLen":5,"Anonymity":true,"PubReport":true,"Necessary":true}
application/xml, text/xml
Sample:
<QuestionnaireDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Anonymity>true</Anonymity> <BeginTime>2024-09-25T00:04:59.1239222+08:00</BeginTime> <CourseId>5547ded6-9612-40bb-9de1-da1a39cb8831</CourseId> <EndTime>2024-09-25T00:04:59.1239222+08:00</EndTime> <Id>1</Id> <MaxLen>5</MaxLen> <Necessary>true</Necessary> <PubReport>true</PubReport> <QuestionnaireDescription>sample string 4</QuestionnaireDescription> <QuestionnaireName>sample string 3</QuestionnaireName> </QuestionnaireDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
保存问卷
JsonRtnDtoOfQuestionnaireName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | Questionnaire |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "Id": 1, "PubId": "7d2a0103-f75f-46e0-902d-cbd410affff6", "MemberId": "sample string 3", "MemberName": "sample string 4", "MemberType": 5, "QuestionnaireName": "sample string 6", "QuestionnaireDescription": "sample string 7", "BeginTime": "2024-09-25T00:04:59.1377152+08:00", "EndTime": "2024-09-25T00:04:59.1377152+08:00", "MaxLen": 8, "Anonymity": true, "PubReport": true, "CreatedTime": "2024-09-25T00:04:59.1377152+08:00", "Necessary": true, "State": 0 } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":1,"PubId":"7d2a0103-f75f-46e0-902d-cbd410affff6","MemberId":"sample string 3","MemberName":"sample string 4","MemberType":5,"QuestionnaireName":"sample string 6","QuestionnaireDescription":"sample string 7","BeginTime":"2024-09-25T00:04:59.1377152+08:00","EndTime":"2024-09-25T00:04:59.1377152+08:00","MaxLen":8,"Anonymity":true,"PubReport":true,"CreatedTime":"2024-09-25T00:04:59.1377152+08:00","Necessary":true,"State":0}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfQuestionnairemEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d2p1:Anonymity>true</d2p1:Anonymity> <d2p1:BeginTime>2024-09-25T00:04:59.1377152+08:00</d2p1:BeginTime> <d2p1:CreatedTime>2024-09-25T00:04:59.1377152+08:00</d2p1:CreatedTime> <d2p1:EndTime>2024-09-25T00:04:59.1377152+08:00</d2p1:EndTime> <d2p1:Id>1</d2p1:Id> <d2p1:MaxLen>8</d2p1:MaxLen> <d2p1:MemberId>sample string 3</d2p1:MemberId> <d2p1:MemberName>sample string 4</d2p1:MemberName> <d2p1:MemberType>5</d2p1:MemberType> <d2p1:Necessary>true</d2p1:Necessary> <d2p1:PubId>7d2a0103-f75f-46e0-902d-cbd410affff6</d2p1:PubId> <d2p1:PubReport>true</d2p1:PubReport> <d2p1:QuestionnaireDescription>sample string 7</d2p1:QuestionnaireDescription> <d2p1:QuestionnaireName>sample string 6</d2p1:QuestionnaireName> <d2p1:State>全部</d2p1:State> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfQuestionnairemEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":1,"PubId":"7d2a0103-f75f-46e0-902d-cbd410affff6","MemberId":"sample string 3","MemberName":"sample string 4","MemberType":5,"QuestionnaireName":"sample string 6","QuestionnaireDescription":"sample string 7","BeginTime":"2024-09-25T00:04:59.1377152+08:00","EndTime":"2024-09-25T00:04:59.1377152+08:00","MaxLen":8,"Anonymity":true,"PubReport":true,"CreatedTime":"2024-09-25T00:04:59.1377152+08:00","Necessary":true,"State":0}});