GET api/questionstest/getquestionstest?Id={Id}
获取问卷试题
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Id |
主键ID |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
获取问卷试题
JsonRtnDtoOfQuestionsTestDtoName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | QuestionsTestDto |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "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:08:29.8632741+08:00" } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"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:08:29.8632741+08:00"}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfQuestionsTestDtov3CTEUQJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data> <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:08:29.8632741+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:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:anyType /> <d3p1:anyType /> </AnswerList> <QuestionsOptions xmlns:d3p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d3p1:QuestionsOptions> <d3p1:Id>1</d3p1:Id> <d3p1:OptionAnswer>sample string 3</d3p1:OptionAnswer> <d3p1:OptionInfo>sample string 4</d3p1:OptionInfo> <d3p1:QuestionsTestId>sample string 2</d3p1:QuestionsTestId> </d3p1:QuestionsOptions> <d3p1:QuestionsOptions> <d3p1:Id>1</d3p1:Id> <d3p1:OptionAnswer>sample string 3</d3p1:OptionAnswer> <d3p1:OptionInfo>sample string 4</d3p1:OptionInfo> <d3p1:QuestionsTestId>sample string 2</d3p1:QuestionsTestId> </d3p1:QuestionsOptions> </QuestionsOptions> <TestIndex>1</TestIndex> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfQuestionsTestDtov3CTEUQJ>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"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:08:29.8632741+08:00"}});