POST api/questionstest/savequestionstest
保存问卷试题
Request Information
URI Parameters
None.
Body Parameters
参数
QuestionsTestDtoName | Description | Type | Additional information |
---|---|---|---|
QuestionsOptions |
问卷选项 |
Collection of QuestionsOptions |
None. |
TestIndex |
顺序号 |
integer |
None. |
AnswerList |
答案数据集合 |
Collection of Object |
None. |
Id |
主键ID |
string |
Max length: 36 |
Title |
题目 |
string |
None. |
ExpectedAnswer |
期望答案 |
string |
Max length: 20 |
QuestionBankId |
题库Id |
integer |
None. |
QTCategory |
题型 |
QTCategory |
None. |
CreatedBy |
创建人 |
string |
Max length: 36 |
IsDeleted |
是否已删除 |
boolean |
None. |
CreatedTime |
创建时间 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{ "QuestionsOptions": [ { "Id": 1, "QuestionsTestId": "sample string 2", "OptionAnswer": "sample string 3", "OptionInfo": "sample string 4" }, { "Id": 1, "QuestionsTestId": "sample string 2", "OptionAnswer": "sample string 3", "OptionInfo": "sample string 4" } ], "TestIndex": 1, "AnswerList": [ {}, {} ], "Id": "sample string 2", "Title": "sample string 3", "ExpectedAnswer": "sample string 4", "QuestionBankId": 5, "QTCategory": 0, "CreatedBy": "sample string 6", "IsDeleted": true, "CreatedTime": "2024-09-25T00:12:03.8320859+08:00" }
text/html
Sample:
{"QuestionsOptions":[{"Id":1,"QuestionsTestId":"sample string 2","OptionAnswer":"sample string 3","OptionInfo":"sample string 4"},{"Id":1,"QuestionsTestId":"sample string 2","OptionAnswer":"sample string 3","OptionInfo":"sample string 4"}],"TestIndex":1,"AnswerList":[{},{}],"Id":"sample string 2","Title":"sample string 3","ExpectedAnswer":"sample string 4","QuestionBankId":5,"QTCategory":0,"CreatedBy":"sample string 6","IsDeleted":true,"CreatedTime":"2024-09-25T00:12:03.8320859+08:00"}
application/xml, text/xml
Sample:
<QuestionsTestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 6</CreatedBy> <CreatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:12:03.8320859+08:00</CreatedTime> <ExpectedAnswer xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 4</ExpectedAnswer> <Id xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 2</Id> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsDeleted> <QTCategory xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">单选题</QTCategory> <QuestionBankId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">5</QuestionBankId> <Title xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 3</Title> <AnswerList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:anyType /> <d2p1:anyType /> </AnswerList> <QuestionsOptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d2p1:QuestionsOptions> <d2p1:Id>1</d2p1:Id> <d2p1:OptionAnswer>sample string 3</d2p1:OptionAnswer> <d2p1:OptionInfo>sample string 4</d2p1:OptionInfo> <d2p1:QuestionsTestId>sample string 2</d2p1:QuestionsTestId> </d2p1:QuestionsOptions> <d2p1:QuestionsOptions> <d2p1:Id>1</d2p1:Id> <d2p1:OptionAnswer>sample string 3</d2p1:OptionAnswer> <d2p1:OptionInfo>sample string 4</d2p1:OptionInfo> <d2p1:QuestionsTestId>sample string 2</d2p1:QuestionsTestId> </d2p1:QuestionsOptions> </QuestionsOptions> <TestIndex>1</TestIndex> </QuestionsTestDto>
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});